Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

kernel change help

Status
Not open for further replies.

nyck

Technical User
Mar 10, 2004
447
GB
I have a RH5.0 server that needs the following to be increased:-

kernel.threads-max

How do I do this?
 
First find out the current limit (as root):

sysctl -a | grep threads

To change the value on-the-fly use:

echo <number> > /proc/sys/kernel/threads-max

example: echo 32768 > /proc/sys/kernel/threads-max

if that works then make it permanent, by changing the value of the key kernel.threads-max in the /etc/sysctl.conf file and then issue the sysctl -p command to load it.

report back...

Ben

"If it works don't fix it! If it doesn't use a sledgehammer..."

How to ask a question, when posting them to a professional forum.
 
Yeah I discovered this just after I sent this post, D'oah!

I have now made the change and just need to hear from the developer to see if its fixed the issue.
 
Even after this change the issue is still happening, below is the error:-

compile:
[javac] Compiling 18740 source files to /usr1/arbor/bsdm_customerudt_src/CustomerUdt/JavaIF/classes


[javac] The system is out of resources.
[javac] Consult the following stack trace for details.
[javac] java.lang.OutOfMemoryError: Java heap space
[javac] at com.sun.tools.javac.code.Scope.dble(Scope.java:150)
[javac] at com.sun.tools.javac.code.Scope.enter(Scope.java:185)


Any suggestions on what else needs to be increased?
 
Increase heap size in Java to prevent java.lang.OutOfMemoryError

addendum: default is in Bytes, using the suffix ‘K’ or ‘k’, ‘M’ or ‘m’ and ‘G’ or ‘g’, you can set them to KiloBytes, MegaBytes or GigaBytes, respectively.

Ben

"If it works don't fix it! If it doesn't use a sledgehammer..."

How to ask a question, when posting them to a professional forum.
 
Hello,

This is what we have done:-

java -Xms<initial heap size> -Xmx<maximum heap size>
Defaults are:
java -Xms32m -Xmx128m

I found this on the same website as your above URL, spooky:)

The annoying thing is that this works fine on a different Linux server fine. Are there any other Kernel changes that can be made?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top