tech-kern archive

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

resource leak in linux emulation?



On a NetBSD/amd64 6.1_STABLE system, I have a perl script that 
effectively calls /usr/pkg/java/sun-7/bin/javac twice.  It doesn't 
really matter what java file its compiling.
If I call this script in an infinite loop, after an hour or so the 
javac's start failing with memory errors:

  # There is insufficient memory for the Java Runtime Environment to 
continue.
  # Cannot create GC thread. Out of system resources.

and after some more time the perl fails to fork (to exec the second 
javac)

   23766      1 perl     CALL  fork
   23766      1 perl     RET   fork -1 errno 35 Resource temporarily 
unavailable

Mar 27 11:43:24 test /netbsd: proc: table is full - increase 
kern.maxproc or NPROC

But all through this top et al tell me there are plenty of processes 
and memory

25 processes: 23 sleeping, 2 on CPU
CPU0 states:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  
100% idle
CPU1 states:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  
100% idle
CPU2 states:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  
100% idle
CPU3 states:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  
100% idle
Memory: 141M Act, 15M Wired, 11M Exec, 90M File, 15G Free
Swap: 2048M Total, 2048M Free


So what resource could this be running out of?

cheers
mark


Home | Main Index | Thread Index | Old Index