tomcat6 windows服务属性默认内存 [英] tomcat6 windows service properties default memory

查看:63
本文介绍了tomcat6 windows服务属性默认内存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我有 tomcat6 作为 Windows 服务器.我正在考虑增加内存,但我不确定它目前有多少内存.它作为服务运行,开始菜单中有一个配置Tomcat"图标这有一个带有初始内存池"和最大内存池"的 java 选项卡,两者都是空的.这些的默认设置是什么?还有一些 Java 选项:

Hello I have tomcat6 as a windows server. I am considering increasing the mmeory but I am not sure how much memory it currently has. It is run as a service and there is a "Configure Tomcat" icon in the start menu This has a java-tab with "Initial memory pool" and "Maximum memory pool" both of which are empty. What is the default on these? There are also some Java Options:

 -Djava.io.tmpdir=C:\Tomcat6\temp
 -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
 -Djava.util.logging.config.file=C:\Tomcat6\conf\logging.properties

推荐答案

默认情况下,Tomcat 6 配置为使用最少 64 MB 的 RAM,最多 128 MB 分配给堆的 RAM.

By default Tomcat 6 is configured to use a minimum of 64 MB of RAM and a maximum of 128 MB of RAM allocated to the heap.

我建议将最大内存池增加到至少 1024 MB.这可能会增加,具体取决于您的服务器需求.

I would suggest to increase the max memory pool to at least 1024 MB. This could be increased, depending upon your server needs.

如果你想增加永久代内存,你可以在 Java 选项文本区域的单独一行中添加:-XX:MaxPermSize=128m

If you want to increase the Permanent Generation memory, you can add this in a separate line in the Java Options text area : -XX:MaxPermSize=128m

这篇关于tomcat6 windows服务属性默认内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆