Mysterious missing memory

Hi,

I have an x4200 with 16GRAM. Its sole purpose is to run postgresql and our java server app. We seem to be losing memory over time and it may have something to do with starting/stopping our java server. If I reboot, I can start postgresql and then start the java server with an Xms of 12G. If I need to restart ithe java server, I will not be able to allocate as much -- the amount of free mem (even with the java server is not running) keeps declining until it gets so low I have to reboot. Right now, postgresql is off and our java server is off and there is only 2.5GRAM free. Looking at prstat, I can't see anything that is using a significant amount of RAM. Has anyone ever heard of anything like this?

[724 byte] By [datombu] at [2007-11-26 10:02:26]
# 1

Have you looked at the output of "prstat -a -s size" or "prstat -a -s rss"?

> If I reboot, I can start postgresql and then start the java server with an Xms of 12G ..

I am not sure why you are starting the java process with 12G heap. If it needs a maximum of 12G over the time, the right option would be Xmx. You might consider lowering the initial heap size (Xms, that is).

giri04 at 2007-7-7 1:34:45 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2
prstat sorts per cpu usage by default, perhaps you should consider running:prstat -s sizeto sort it on memory usage instead, that might give you a clue. 7/M.
mAbrante at 2007-7-7 1:34:45 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 3
you can check if the kernel has hold of lots of memory usingecho "::kmastat" | mdb -kand see if any of the caches have grown big enough to account for yourmemory.tim
timuglow at 2007-7-7 1:34:45 > top of Java-index,Solaris Operating System,Solaris 10 Features...