tomcat 作为 Windows 服务 - 增加最大 Java 堆内存
我已经将tomcat5.5安装为Windows服务,并且我需要更改java内存池。但是,当我输入超过 1348 mb 的任何金额时,该服务不会启动。 有什么办法可以解决这个问题吗?如果我以非 Windows 服务方式安装它会有帮助吗?
TIA
i have tomcat5.5 installed as a windows service, and I need to change the java memory pool. however, when i enter any amount more than 1348 mb, the service doesn't start.
IS there any way to get around this? Would it help if I installed it the non-windows-service way?
TIA
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Windows 应用程序的内存限制为 2Gb,因此除了您指定的 1348Mb 之外,还有其他内存池,当然还有 JVM 本身。
您可以在启动时指定一个 Windows 设置以允许应用程序使用 3Gb,但 sun 的 JVM 无法使用它。 JRockit 不过
,是否可以集群 tomcat 并分配工作负载?
A windows application is limited to 2Gb of memory for the application, so as well as 1348Mb you have specified there are teh other memory pools and of course the JVM it's self.
There is a windows setting you can specify at boot time to allow an application to use 3Gb, but sun's JVM does not play ball with it. JRockit does though
Alternately would it be possible to cluster tomcat and distribute the work load?