求个ubuntu服务器的sysctl.conf文件

jackker 2010-02-05 04:12:36
我使用的ubuntu server做为web服务器,主要提供论坛服务。
4G内存。

应该如何配置我的sysctl.conf使其可以发挥最好的性能,兼容更高的并发?(大于2000并发)
有相关经验的请帮我贴下你的/etc/sysctl.conf,最好将几个重要的参数写给我。
谢谢!!
...全文
134 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
jackker 2010-02-15
  • 打赏
  • 举报
回复
upupupupupupupupupupupupupupupupupupupup
jackker 2010-02-05
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 wuguanlin 的回复:]
木有配置过。。。
[/Quote]

没配置过的能使用吗?能负荷多大的访问量?
wuguanlin 2010-02-05
  • 打赏
  • 举报
回复
木有配置过。。。
[root@h88 vCenterDispatch]# cat /etc/sysctl.conf
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename
# Useful for debugging multi-threaded applications
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Controls the maximum size of a message, in bytes
kernel.msgmnb = 65536

# Controls the default maxmimum size of a mesage queue
kernel.msgmax = 65536

# Controls the maximum shared segment size, in bytes
kernel.shmmax = 68719476736

# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 4294967296

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧