tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: resource leak in linux emulation?



On Thursday 27 March 2014 14:00:37 I wrote:
> So what resource could this be running out of?

Coming back to this, looks like nprocs isn't being incremented/decremented 
properly in some circumstances:

test# cat > HelloWorld.java

public class HelloWorld {

    public static void main(String[] args) {
        System.out.println("Hello, World");
    }

}
test# cat /proc/loadavg 
0.00 0.03 0.30 1/887 30000
test# /usr/pkg/java/sun-7/bin/javac HelloWorld.java 
test# cat /proc/loadavg
0.00 0.02 0.30 1/888 30000
test# /usr/pkg/java/sun-7/bin/javac HelloWorld.java
test# cat /proc/loadavg
0.00 0.02 0.27 1/889 30000
test# ps uaxww | wc -l
      27

Note that nprocs (2nd to last value in the /proc/loadavg output) 
increments every time javac runs until it hits maxproc.

cheers
mark


Home | Main Index | Thread Index | Old Index