High Tomcat's Java Virtual Memory above -Xmx setting?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2014 01:08 PM
Hi there,
We have a 3 years old Alfresco 4.2 server for around 500 casual users, with the following specs:
<strong>System:</strong>
* RAM: 32 GB
* CPU: 6 cores
* Arch: 64 bits
* OS: Ubuntu 12.04
<strong>Applications:</strong>
* Tomcat 7 (alfresco, share, solr)
* PostgreSQL
<strong>Resources usage:</strong>
As consumed by Tomcat's java process:
* Resident memory: 5.79 GB
* Virtual memory: 16.5 GB
<strong>JVM Tuning:</strong>
* Xms: 2 Gb
* Xmx: 12 Gb
* Perms: 512M
<strong>Questions:</strong>
* Why does the java process's virtual memory exceeds by 4.5 GB the configured Xmx value of the JVM? How it is possible and how can I take real control of the maximum reserved memory for it?
* For PostgreSQL, how much memory could be allocated for around 100 concurrents users? I've noticed that each PostgreSQL process takes around 130 MB of virtual memory
We have a 3 years old Alfresco 4.2 server for around 500 casual users, with the following specs:
<strong>System:</strong>
* RAM: 32 GB
* CPU: 6 cores
* Arch: 64 bits
* OS: Ubuntu 12.04
<strong>Applications:</strong>
* Tomcat 7 (alfresco, share, solr)
* PostgreSQL
<strong>Resources usage:</strong>
As consumed by Tomcat's java process:
* Resident memory: 5.79 GB
* Virtual memory: 16.5 GB
<strong>JVM Tuning:</strong>
* Xms: 2 Gb
* Xmx: 12 Gb
* Perms: 512M
<strong>Questions:</strong>
* Why does the java process's virtual memory exceeds by 4.5 GB the configured Xmx value of the JVM? How it is possible and how can I take real control of the maximum reserved memory for it?
* For PostgreSQL, how much memory could be allocated for around 100 concurrents users? I've noticed that each PostgreSQL process takes around 130 MB of virtual memory
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2014 03:53 PM
Have you looked at these two files to see what the values are? I manually adjusted them and restarted the service. No issues.
/alfresco/tomcat/scripts/ctl.sh
/alfresco/tomcat/bin/setenv.sh
/alfresco/tomcat/scripts/ctl.sh
/alfresco/tomcat/bin/setenv.sh
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2014 03:19 AM
I've been using ctl.sh, maybe setenv.sh overrides the values. I will review it tomorrow.
Thanks.
Thanks.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-25-2014 09:39 PM
I checked both files, I will use jconsole or something to examine the situation better.
