A PHP Error was encountered

Severity: 8192

Message: Function create_function() is deprecated

Filename: geshi/geshi.php

Line Number: 4698

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 693
Function: getPaste

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

Cara Membuat Memory Swap di Digital Ocean - Stikked
From default.id, 9 Years ago, written in HTML5.
Embed
  1. Pada droplets Digital Ocean bisanyaa tidak menyediakan Swap Memory. Jadi memory yang didapat dari Digital Ocean adalah memory murni dari Ram yang disediakan oleh Digital Ocean.
  2.  
  3. Untuk memiliki Droplet di Digital Ocen, daftar disini
  4.  
  5. Swap berfungsi sebagai memory tambahan pada droplet atau VPS yang dimiliki. Virtual memory atau swap memberikan system atau vps anda additional Ram atau memory tambahan pada VPS. Jadi Swap menambah memory yang ada di vps.
  6.  
  7. Untuk mengecek apakah VPS anda memiliki Swap jalankan perintah berikut free -m:
  8.  
  9. [root@sin ~]# free -m
  10.              total       used       free     shared    buffers     cached
  11. Mem:           498        445         53          0         28        361
  12. -/+ buffers/cache:         55        443
  13. Swap:         2047          0       2047
  14. [root@sin ~]#
  15. Biasanya pada Swap di digital ocean atau vps yang tidak menyediakan swap memory adalah 0.
  16.  
  17. [root@sin ~]# free
  18.              total       used       free     shared    buffers     cached
  19. Mem:        361996     360392       1604          0       2320      54444
  20. -/+ buffers/cache:     303628      58368
  21. Swap:            0          0          0
  22. [root@sin ~]#
  23. Berikut car menambah Swap pada VPS yang Swap unabled atau disable secara default dari provider.
  24.  
  25. [root@sin ~]# cd /var
  26. [root@sin ~]# touch swap.img
  27. [root@sin ~]# chmod 600 swap.img
  28. [root@sin ~]# _
  29. Lalu dibuat besarnya file yang akan digunakan untuk swap. Disini default.id akan membuat 1000MB Swap
  30.  
  31. [root@sin ~]# dd if=/dev/zero of=/var/swap.img bs=1024k count=1000
  32. 1000+0 records in
  33. 1000+0 records out
  34. 1048576000 bytes (0.999 GB) copied, 8.0868896 s, 253 MB/s
  35. [root@sin ~]# _
  36. Setelah itu persiapkan image atau file yang sudah dibuat untuk swap.
  37.  
  38. b[root@sin ~]#  mkswap /var/swap.img
  39. Setting up swapspace version 1, size = 1000 GiB
  40. no label, UUID=72761533-8xbe-436l-b07e-c0sabe9cedf3
  41. [root@sin ~]#  _
  42. Enable fitur swap di vps
  43.  
  44. [root@sin ~]# swapon /var/swap.img
  45. [root@sin ~]# free
  46.              total       used       free     shared    buffers     cached
  47. Mem:        503596     478928      24668          0      38832     102384
  48. -/+ buffers/cache:     337712     165884
  49. Swap:      1048572       1780    1046792
  50. [root@sin ~]# _
  51. Lalu enable swap di fstab agar berjalan otomatis pada saat booting.
  52.  
  53. [root@sin ~]# echo "/var/swap.img    none    swap    sw    0    0" >> /etc/fstab
  54. [root@sin ~]# _
  55. Ok file swap sudah berhasil di buat.
  56.  
  57. http://default.id/cara-membuat-memory-swap-di-digital-ocean.html