you can patch the apps to use setrlimit() you can write a small sh wrapper that sets ulimits and execs your app
you can also set your defaults in /etc/login.conf or ~/.profile depends on what you want i use gimp and ff so login.conf/.profile is really more sensible than wrapping all the monster apps On Fri, Nov 18, 2011 at 10:42 PM, John Tate <[email protected]> wrote: > Netbeans crashes with this... > > john@rothbard ~$ netbeans > # > # A fatal error has been detected by the Java Runtime Environment: > # > # java.lang.OutOfMemoryError: requested 32784 bytes for Chunk::new. > Out of swap space? > # > # B Internal Error (allocation.cpp:272), pid=17843, tid=8647815168 > # B Error: Chunk::new > # > # JRE version: 7.0 > # Java VM: OpenJDK 64-Bit Server VM (20.0-b03 mixed mode bsd-amd64 > compressed oops) > # An error report file with more information is saved as: > # /home/john/hs_err_pid17843.log > # > # If you would like to submit a bug report, please visit: > # B http://java.sun.com/webapps/bugreport/crash.jsp > # > Abort trap (core dumped) > > Eclipse crashes with this... > [john@rothbard ~$ eclipse > # > # A fatal error has been detected by the Java Runtime Environment: > # > # java.lang.OutOfMemoryError: requested 1565456 bytes for Chunk::new. > Out of swap space? > # > # B Internal Error (allocation.cpp:272), pid=30120, tid=8844312576 > # B Error: Chunk::new > # > # JRE version: 7.0 > # Java VM: OpenJDK 64-Bit Server VM (20.0-b03 mixed mode bsd-amd64 > compressed oops) > # An error report file with more information is saved as: > # /home/john/hs_err_pid30120.log > # > # If you would like to submit a bug report, please visit: > # B http://java.sun.com/webapps/bugreport/crash.jsp > # > > How should I proceed? > > > -- > www.johntate.org

