简体   繁体   English

在Tomcat中增加Java堆空间-Windows 7客户端

[英]Increase java heap space in Tomcat - Windows 7 Client

I have Apache Tomcat installed on my Windows 7 Client machine, and am utilising geoserver.war as a deployment. 我在Windows 7客户端计算机上安装了Apache Tomcat,并且正在将geoserver.war用作部署。

I keep on getting timed out/Java memory issues within Geoserver. 我不断在Geoserver中遇到超时/ Java内存问题。 [(http://localhost:8080/geoserver/web/] [(http:// localhost:8080 / geoserver / web /]

There are lots of examples on how to increase space under Linux but not under a Windows Client. 有很多关于如何在Linux下而不是Windows Client下增加空间的示例。 I currently have 8GB of DDR5 memory and an Intel Core i5. 我目前有8GB DDR5内存和一个Intel Core i5。

Any ideas on how I increase this on a Windows Client? 关于如何在Windows客户端上增加此值的任何想法?

You can increase the JVM heap space by adding the following parameters, also it should work on Windows and Linux: 您可以通过添加以下参数来增加JVM堆空间,它也可以在Windows和Linux上运行:

-Xmx2048m -> this param to set the max memory that the JVM can allocate
-Xms1024m -> the init memory that JVM will allocate on the start up
-XX:MaxPermSize=512M -> this for the max Permanent Generation memory

In order to add them under tomcat: 为了在tomcat下添加它们:

  • Navigate and open tomcat7w.exe inside [TOMCAT_HOME]/bin 浏览并打开[TOMCAT_HOME]/bin tomcat7w.exe
  • Go to Java tap , then add them under Java Options 转到Java tap ,然后将其添加到Java Options

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM