How to increase Maximum Memory Pool Size? Apache Tomcat 9
Asked Answered
N

2

3

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

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.

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?

enter image description here

Nightie answered 21/5, 2018 at 6:19 Comment(5)
"When I increase from 1024 to 2048 apache is not starting." well do you have enough memory to give 2GB for Tomcat?Tamtam
I have 2TB memory space on my Drive. Where Apache and geoserver are installed.Nightie
"2TB memory space on my Drive" what does that mean? Do you understand the difference between memory and disk storage?Tamtam
Kayaman sorry i was thinking about disk storage.Nightie
I got solution ... I just install 64 bit java...Nightie
W
5

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.

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

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.

Weariful answered 21/5, 2018 at 9:43 Comment(0)
B
1

Maximum memory pool size is the maximum allocated memory for tomcat depending on available main memory(RAM)

Boudicca answered 21/10, 2018 at 13:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.