[ask]pemakaian memory

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
rafdinal
Posts: 131
Joined: 22 Jun 2011, 20:01

[ask]pemakaian memory

Postby rafdinal » 03 Aug 2011, 11:55

1.nanya lg gann,,ubuntu server 11.04 saat start kok besar kali pemakian memory nya kira 127 MBlihat dgn top,,padahal aku cuma buat jalankan squid yg di di lihat dgn squidclient mgr:info memory usage for squid via malloc total size=26572 KB,jadi memory buat system aja kira2 100 MB.
2.kalau ubuntu cuma buat jalankan squid apakah aplikasi apache2 boleh dimatikan aja gann,,apakah apache2 banyak memakai memory??...
3.apa bisa mengurangi pemakaian memory system ??..


makasih gann..


"malu bertanya buntu pikiran"..
User avatar
Soekarmana
Posts: 466
Joined: 23 May 2010, 22:34
Location: Denpasar
Contact:

Re: [ask]pemakaian memory

Postby Soekarmana » 04 Aug 2011, 20:37

ini pc server sbg server apa aja gan?
kalo sbg proxy server / gateway lebih baik gak usah install apache...
User avatar
MasDjo
Posts: 1260
Joined: 03 Jan 2010, 17:38
Location: Bayuangga City
Contact:

Re: [ask]pemakaian memory

Postby MasDjo » 05 Aug 2011, 09:33

Alokasi Harddisk utk Squid berapa giga ? (lihat di squid.conf, baris cache_dir), karena per 1 GB cache squid butuh 10 MB RAM
( Squid cache Wiki )
User avatar
rafdinal
Posts: 131
Joined: 22 Jun 2011, 20:01

Re: [ask]pemakaian memory

Postby rafdinal » 05 Aug 2011, 10:31

@masDjo cache_dir 8 gb,,jadi 80 MB gitu pemakaian memory??..kalau squidclient mgr:info kok total space in arena :28953 KB (29MB)..
gimana maksudnya itu mas??..
User avatar
yudiarbi
Posts: 627
Joined: 22 Mar 2011, 09:31
Location: Probolinggo, Jawa Timur
Contact:

Re: [ask]pemakaian memory

Postby yudiarbi » 05 Aug 2011, 13:01

memang berdasarkan pengalaman pribadi, boleh percaya boleh tidak, :D konfigurasi squid sangat berpengaruh terhadap kinerja proxy itu sendiri, ato mungkin kalo berkenan diposting squid.conf, biar para mastah2 urun2 pendapat, bisa juga bermain2 di sini : http://yudibass.blogspot.com/2011/07/belajar-squid.html
User avatar
rafdinal
Posts: 131
Joined: 22 Jun 2011, 20:01

Re: [ask]pemakaian memory

Postby rafdinal » 05 Aug 2011, 15:34

@yudiarbi ,,ini bro:

#################################
# HIGH PERFORMANCE SQUID 2.7
# gibrannet
#################################

# ACCESS CONTROLS
# ---------------
acl QUERY urlpath_regex -i cgi-bin \? \.php$ \.asp$ \.shtml$ \.cfm$ \.cfml$ \.phtml$ \.php3$ localhost
acl localnet src 192.168.0.0/24
acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/32
acl safeports port 21 70 80 210 280 443 488 563 591 631 777 901 81 3128 1025-65535
acl sslports port 443 563 81
acl manager proto cache_object
acl purge method PURGE
acl connect method CONNECT
acl ym dstdomain .messenger.yahoo.com .psq.yahoo.com
acl ym dstdomain .us.il.yimg.com .msg.yahoo.com .pager.yahoo.com
acl ym dstdomain .rareedge.com .ytunnelpro.com .chat.yahoo.com
acl ym dstdomain .voice.yahoo.com
acl ymregex url_regex yupdater.yim ymsgr myspaceim

http_access deny ym
http_access deny ymregex
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !safeports
http_access deny CONNECT !sslports
http_access allow localhost
http_access allow localnet
http_access deny all

# NETWORK OPTIONS
# ---------------
http_port 3128 transparent
#icp_access deny all
icp_access allow localnet
icp_access allow all

# OPTIONS WHICH AFFECT THE CACHE SIZE
# -----------------------------------
cache_mem 8 MB
maximum_object_size_in_memory 64 KB
memory_replacement_policy heap GDSF
cache_replacement_policy heap LFUDA
cache_dir aufs /squid1 8000 16 256
maximum_object_size 20480 KB
cache_swap_low 80
cache_swap_high 85
update_headers off

# LOGFILE PATHNAMES AND CACHE DIRECTORIES
# ---------------------------------------
access_log /var/log/squid/access.log
access_log none
cache_log /cache/cache.log
#cache_log /dev/null
cache_store_log none
logfile_rotate 5
log_ip_on_direct off
log_icp_queries off
buffered_logs off
netdb_filename none
client_db off
pid_filename /var/run/squid.pid

# OPTIONS FOR TUNING THE CACHE
# ----------------------------
cache deny QUERY
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i \.(gif|png|jp?g|ico|bmp|tiff?)$ 10080 95% 43200 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-private
refresh_pattern -i \.(rpm|cab|deb|exe|msi|msu|zip|tar|gz|tgz|rar|bin|7z|doc?|xls?|ppt?|pdf|nth|psd|sis)$ 10080 90% 43200 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-private
refresh_pattern -i \.(avi|iso|wav|mid|mp?|mpeg|mov|3gp|wm?|swf|flv|x-flv|axd)$ 43200 95% 432000 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-private
refresh_pattern -i \.(html|htm|css|js)$ 1440 75% 40320
refresh_pattern -i \.index.(html|htm)$ 0 75% 10080
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 1440 90% 10080

quick_abort_min 0 KB
quick_abort_max 0 KB
quick_abort_pct 100
store_avg_object_size 13 KB

# HTTP OPTIONS
# ------------
#server_http11 on
collapsed_forwarding on
vary_ignore_expire on

# ANONIMITY OPTIONS
# -----------------
header_access From deny all
header_access Server deny all
header_access Link deny all
header_access Via deny all
header_access X-Forwarded-For deny all

# TIMEOUTS
# --------
forward_timeout 240 second
connect_timeout 30 second
peer_connect_timeout 5 second
read_timeout 600 second
request_timeout 60 second
persistent_request_timeout 60 second
client_lifetime 86400 second
half_closed_clients off
pconn_timeout 60 second
shutdown_lifetime 10 second

# ADMINISTRATIVE PARAMETERS
# -------------------------
cache_mgr gibrannet
cache_effective_user proxy
cache_effective_group proxy
httpd_suppress_version_string on
visible_hostname gibrannet

# ADVANCED NETWORKING OPTIONS
# ---------------------------
max_filedescriptors 1024
# DNS OPTIONS
# -----------
#check_hostnames off
#DNS NAWALA
dns_nameservers 180.131.144.144
dns_nameservers 180.131.144.145
hosts_file /etc/hosts
ipcache_size 8192
ipcache_low 90
ipcache_high 95

# MISCELLANEOUS
# -------------
memory_pools off
forwarded_for off
reload_into_ims on
coredump_dir /var/spool/squid ???
pipeline_prefetch on
offline_mode off
hierarchy_stoplist cgi-bi?
###### END CONFIGURATION ###########
User avatar
sipelaut
Posts: 1963
Joined: 03 Jan 2010, 17:25
Location: madura-sampang
Contact:

Re: [ask]pemakaian memory

Postby sipelaut » 06 Aug 2011, 10:16

Code: Select all

 acl QUERY urlpath_regex -i cgi-bin \? \.php$ \.asp$ \.shtml$ \.cfm$ \.cfml$ \.phtml$ \.php3$ localhost

sori OOT dikit mo nanyak soal diatas
sebenarnya sintaks itu pakek "\." atau gak usah pakek "\" yaa??
soalnya ku hanya pakek "." tanpa "\" dan bisa jalan nichh proxynya
ada yang mau ngasih saya pencerahan soal hal ini

Return to “Ubuntu Server”

Who is online

Users browsing this forum: No registered users and 10 guests