如何增加最大内存池大小? Apache Tomcat 9 [英] How to increase Maximum Memory Pool Size? Apache Tomcat 9

查看:295
本文介绍了如何增加最大内存池大小? Apache Tomcat 9的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试增加Apache tomcat config中的最大内存池.

I am trying to increase my Maximum memory pool in Apache tomcat config.

我在Apache的帮助下使用地理服务器服务,但是我在地理服务器中的存储速度非常快.一直以来,我都必须从地理服务器服务器状态"中释放内存.

I am using Geo-server services with the help of Apache, however my memory in Geo-server is filling very fast. All the time I have to free memory from Geo-server Server Status.

1024 to 2048 Apache无法启动时,我必须通过停止Apache服务器来将内存增加至2048 maximum.

I have to increase my memory to 2048 maximum by stopping Apache server when I increase from 1024 to 2048 Apache is not starting.

任何人都可以指导我该如何增加内存大小吗?

Can anyone guide me what to do how I should increase my memory size?

推荐答案

32位程序存在严重的内存限制(源自-my- Ancient内存:Windows上的限制约为1.5G,前提是该操作系统必须在操作系统启动后尽早启动) .这是由于JVM要求获得连续内存,而32位子系统中没有足够的可用内存.根据屏幕截图,您正在64位操作系统上运行32位JVM(因为它已安装在程序文件(x86)"中).

32bit programs have a severe memory limitation (from -my- ancient memory: The limit is around 1.5G on Windows, provided it's started early after the OS started). This stems from the requirement of the JVM to get contiguous memory, of which there's not enough available in the 32bit subsystem. According to the screenshot, you're running a 32bit JVM (because it's installed in "Program Files (x86)") on a 64bit Operating System.

安装(并使用)64位JVM,并确保您有足够的可用内存.

Install (and use) a 64bit JVM and make sure that you have enough memory available.

我的建议是将初始内存池"设置为与最大内存池"相同的值,以便在启动服务时发现内存问题,而不是在星期三凌晨3点(当JVM尝试执行以下操作)时发现内存问题分配剩余的内存,但无法获取.

My recommendation is to set the "Initial memory pool" to the same value as the "Maximum memory pool", so that you discover memory problems while you start the service, and not sunday nights at 3am, when the JVM tries to allocate the rest of the memory but can't get it.

这篇关于如何增加最大内存池大小? Apache Tomcat 9的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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