Task #11944
closed
Add 1 GB of RAM to accounting service instances
100%
Description
The accounting instances have the following (default) heap limits:
-Xms2048m -Xmx2048m
but the VM have only 2 GB of RAM.
We need decrease the memory limit in this way:
tomcat_m_min_heap_size: 512m tomcat_m_heap_size: 1536m
Updated by Roberto Cirillo over 7 years ago
- Status changed from New to In Progress
I don't know if it's better to decrease the heap size or to increase the RAM. At this moment both the instances are swapping:
accounting-service1.d4science.org accounting-service2.d4science.org
so, what do you suggest, @andrea.dellamico@isti.cnr.it , @tommaso.piccioli@isti.cnr.it ?
Updated by Roberto Cirillo over 7 years ago
- Status changed from In Progress to Feedback
- Assignee changed from Roberto Cirillo to _InfraScience Systems Engineer
Updated by Andrea Dell'Amico over 7 years ago
- It would be better adding 1 GB of RAM each, I've always seen heap memory problems with smartgears nodes with less than 2GB of RAM.
- I also always saw problems when the min and max heap sizes differ. I don't see a reason to use different values, the services live on dedicated VMs and the applications always try to use all the available memory anyway.
- There's also accounting-service3.d4science.org. It's registered on the load balancer, but it's down. If it's not used we should destroy and remove it from the configurations.
Updated by Roberto Cirillo over 7 years ago
- Subject changed from Decrease heap size on accounting service instances to Add 1 GB of RAM to accounting service instances
OK I agree for adding 1 GB of RAM for each instance.
I don't know why accounting-service3 is down, maybe @luca.frosini@isti.cnr.it knows the reason.
FYI at this moment there is sdi.d4science.org that is running with less than 2 GB of RAM without problems for the moment.
Updated by Tommaso Piccioli over 7 years ago
sdi.d4science.org tomcat was restarted this morning, before the restart there was a memory warning on nagios.
Updated by Andrea Dell'Amico over 7 years ago
accounting-service3.d4science.org only had a non working tomcat, now it's on line.
@luca.frosini@isti.cnr.it we add 1 GB of RAM on each node, OK?
Updated by Andrea Dell'Amico over 7 years ago
- Status changed from Feedback to In Progress
- % Done changed from 0 to 10
I'm doing it, one at a time.
Updated by Andrea Dell'Amico over 7 years ago
- Status changed from In Progress to Feedback
- % Done changed from 10 to 100
Done. Now the three servers run with 3GB of RAM each.
Updated by Andrea Dell'Amico about 7 years ago
- Status changed from Feedback to Closed