I am using a simple test program that I run for a few hours.
public static void main(String[] args) {
for (int i=1; i<500; i++) {
run();
}
}
public static void run() {
new Thread(new Runnable() {
@Override
public void run() {
while (true) {
new String("Hello World");
}
}
}).start();
}
When I monitor the process either through PS or pmap, the RSS portion increases while jvisualvm reports heap is stable.
If I sum up all the RSS anon mappings, they are increasing over time.
I am using Centos 5.7 x64 with Sun JDK 1.6.0_31.
Should the RSS be increasing over time?