-
-
Notifications
You must be signed in to change notification settings - Fork 408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OutOfMemoryError: Java heap space #1412
Comments
Actually this makes more sense when I view the process snapshot. It appears that there are conflicting heap size settings (-Xmx2048m vs -Xmx512) and I believe the 512m is winning. This would certainly lead to OutOfMemoryErrors even with no memory leaks.
The first setting (-Xmx2048m) comes from /etc/default/tomcat while the second one (-Xmx512m) comes from /usr/share/tomcat7/bin/setenv.sh. I commented out the latter configuration and restarted Tomcat. We'll monitor this for now and if we see it again we'll probably need to profile the application while throwing some load at it. If/when that becomes available I'd recommend using access logs from the period 01-16-2020 to 01-28-2020 for a more accurate snapshot of requests.
|
Seems like this was resolved by setting the configuration properly. |
The server might have been leaking memory for awhile but there's something suspicious about the multiple Create Requisition requests just before the out of memory error. I believe it might have been due to the fact that the server was already slow but worth investigating in case it sheds light on the cause.
The text was updated successfully, but these errors were encountered: