Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is tomcat memory heap committed?

We are monitoring tomcat servers and i found whenever Committed Heap memory reached Max heap memory my tomcat got crashed or OOM error, But at same time Heap Used memory is under normal used. Could some one explain what is committed used and why its crashing while Heap used is normal.

See following graph so you get some idea.

enter image description here

like image 597
Satish Avatar asked Jun 03 '26 01:06

Satish


1 Answers

Committed space is space that is not virtual. Namely space that is statically assigned to a given partition of the JVM. When you use the optional sizing switches -Xms and -Xmx not everything is initially committed to particular partition of memory. As the generations have a need to expand they are permitted to grow into the "virtual" space.

Your chart looks like how things should be working. As your used space grows toward your committed, the committed space expands towards the maximum. When committed reaches the maximum size thats it, it has no where to go. If it can't save itself with a last ditch GC then down your JVM goes.

like image 70
nsfyn55 Avatar answered Jun 06 '26 01:06

nsfyn55



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!