that is what confused me too, an ever increasing memory consumption according to top but nothing in visualvm/jconsole/etc.
The last test with the oom killer was custom build css with OpenJDK 1.7.0_u51... So quite a difference.
The mystery is that not the java memory pools (heap, perm gen) are running out of memory but the vm process according to
linux (ps/top and oom-killer).

I am now running nsls2-3.2.16a with the boy widget examples... (custom build does not have boy yet)
It is started with the integrated oracle vm 1.7.0_25. We will see.

Epics was pure Java CA in all setups.


Von:        "Kasemir, Kay" <kasemirk@ornl.gov>
An:        "<marcus.michalsky@ptb.de> " <marcus.michalsky@ptb.de>
Kopie:        "cs-studio-users@lists.sourceforge.net" <cs-studio-users@lists.sourceforge.net>
Datum:        27.06.2014 14:53
Betreff:        Re: [Cs-studio-users] Filling Memory when observing PVs

On Jun 27, 2014, at 8:29 AM, <marcus.michalsky@ptb.de>
> AFAIK -Xmx does not set the overall memory limit but the maximum heap size: …
Right, there's some difference between the "256m" that the JVM provides to CSS for heap, and the overall memory footprint which includes the JVM itself and the perm gen space. Still, the latter two are a fairly fixed overhead, they shouldn't result in growing from "256m" to total-vm:7278584kB = 7GB.

> The -Xmx256m was/is specified in the css.ini file:
> ...
> After starting it when using ps -ef | grep css I see the long outout with ... /usr/bin/java -vmargs -Xmx256m ...
> VisualVM also shows it in JVM arguments and in the monitor tab (as Gabriele showed in the screenshots):
> Heap: Max: 268.435.456 B
> Perm Gen Max: Max: 174.063.616 B
Good, that confirms we have known Xmx settings.

Overall, that makes it even more puzzling, and nobody else has reported such memory growth which seems to come from the JVM itself.
If the heap or perm gen space ran into the configured limits, you should see out-of-memory exceptions from the JVM itself.
So what's different about your setup?

If you just run the /BOY Examples/1_2_WidgetExamples.opi that displays most widgets, using simulated PVs, does that grow over time for you?
When talking to real EPICS PVs, are you using the pure Java CA client, or did you add the JNI version?