Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
8
rated 0 times [  8] [ 0]  / answers: 1 / hits: 39624  / 1 Year ago, sun, december 11, 2022, 6:40:52

I have an Ubuntu server 12.04 using a reverse proxy so that tomcat runs on top of apache.
And I have a confluence instance on that machine, and a ticket system. So nothing special.



Memory is 8GB that's more than enough for this use.



From time to time, and in the last few days more often my confluence page crashes.



The log (confluencelogscatalina.2014-05-06) shows this :



SEVERE: Socket accept failed
java.lang.OutOfMemoryError: Java heap space


So how can I avoid this? How can I give that process more memory.


More From » java

 Answers
7

In my system I have edited the file



/etc/init.d/tomcat 


with these rows



HEAP="-Xms2048m -Xmx2048m" 
export JAVA_OPTS="$HEAP"


After restart tomcat you can see in the status section the memory allocated


[#25395] Monday, December 12, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tonhorn

Total Points: 196
Total Questions: 118
Total Answers: 95

Location: Vanuatu
Member since Fri, May 13, 2022
2 Years ago
tonhorn questions
Tue, May 10, 22, 12:01, 2 Years ago
Sat, Dec 18, 21, 06:23, 2 Years ago
Thu, Jun 16, 22, 04:03, 2 Years ago
Fri, Apr 1, 22, 05:23, 2 Years ago
;