Tomcat as a service v/s Tomcat on console for 64 bit Windows

ぃ、小莉子 提交于 2019-12-13 18:01:47

问题


When I start Tomcat (64 bit) on 64 bit Windows my application (Solr) starts giving Out of Memory Errors. I have allocated min/max heap of 5GB for both to Tomcat using Windows Environment variable CATALINA_OPTS.

However when I start tomcat on command line using startup.bat it does not give any such errors and my application is touching 5GB so it is clear that it is taking into consideration the min/max heap committed.

Now my question is: Do I need to do any additional stuff while starting tomcat as a service, I mean setting some params etc? For less Index size on Solr everything seems to be fine in Tomcat. This problem happens for large index sizes. Is it not picking up CATALINA_OPTS while running as a service?


回答1:


To set the memory arguments for TOMCAT windows service do that following -

  1. Start /bin/tomcat7w.exe
  2. Click Java
  3. Set your Memory arguments

Restart the service.



来源:https://stackoverflow.com/questions/9732996/tomcat-as-a-service-v-s-tomcat-on-console-for-64-bit-windows

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!