marctrem
marctrem

Reputation: 850

Why does Tomcat 7 Memory usage looks like saw? (picture)

Why does Tomcat 7 Memory usage looks like saw? Souldn't it be more stable? Has it got something to do with the GC? And if yes, does it mean there is a "leak" that is present? By the way this server is a test server with nothing on it.

Thanks!

Tomcat 7 memory Image link

Blue is Used heap
Orange is Heap size

Upvotes: 3

Views: 285

Answers (2)

javawizard
javawizard

Reputation: 1284

It's just the way the Java garbage collector works. It lets memory accumulate until it hits a certain threshold, then it runs the garbage collector and frees up what it can. So it's not that Tomcat's actually using more memory, just that Java hasn't bothered to free it up yet.

Upvotes: 3

irreputable
irreputable

Reputation: 45453

saw pattern is very normal.

even if app is doing nothing, there are background tasks that create garbages.

Upvotes: 2

Related Questions