cancel
Showing results for 
Search instead for 
Did you mean: 

How to determine the java memory cosumption

Former Member
0 Kudos

Hi.

In our system Netweaver7.1, (on windows)

I want to know java heap memory consumption.

We can see the memory consumption from windows task manager, but the AS JAVA caught the memory heap memory size during startup.

So itisn't correct.

In NWA, many paerformance monitors are, but I don't know which tool is useful.

I want to sizing the memory size with following logic.

8:00~9:00 50% load

The java memory is conusmed 3GB.

11:00~12:00 100% load

The java memorry will "may" be consumed 6GB.

regards,

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi CJ

First you have to know how java does manage memory. I won't go into details here, but you can look up for these key words: "java heap", "new size", "garbage collection", "full gc"

In short, java will allocate memory from the heap and the garbage collection will free it again, but this happens delayed. You may very well see the full heap being allocated all the time.

You can check the memory consumption in various ways:

- http://<yourhost>:<port>/nwa -> Monitoring -> Java System Reports -> Diagrams -> Memory Consumption

- in the visual administrator -> <node> -> Services -> Monitoring -> Services -> Memory

- with telnet: telnet <yourhost> 50008 -> lsc -> jump <server_id> -> info

Or with the GC Viewer, check this blog [Trouble Shooting Java Memory|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4258] [original link is broken] [original link is broken] [original link is broken];

Best regards

Michael