- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: unable to create new native thread - linux
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2003 08:19 AM
10-24-2003 08:19 AM
Throwable: java.lang.OutOfMemoryError: unable to create new native thread
I know it has to do something with number of threads per process.
can anyone tell me what are these these parameters like nproc etc. Is there any parameter that sets no. of threads per process? per user?
pls let me know
thanks
vijay
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2003 08:25 AM
10-24-2003 08:25 AM
Re: unable to create new native thread - linux
If you are running REd Hat 9, there is a graphical display for making some kernel changes on the fly in X-Windows.
On older distributions, you have to compile a new kernel.
Instructions:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=234110
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2003 08:32 AM
10-24-2003 08:32 AM
Re: unable to create new native thread - linux
i would like to know the parameters, i tried searching for nthreads and nproc... but no luck.
i know we can do on the fly kernel parameter changes in RHL7.2 too. i need to know threads parameters.
thanks
vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2003 08:14 AM
10-25-2003 08:14 AM
Re: unable to create new native thread - linux
cat /proc/sys/kernel/threads-max
# /sbin/sysctl -a
will also show all the present kernel parameters.
have a read of man sysctl to find out more about changing theses values.
Hope this help by-pass this lack of ressources !
J-P
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2003 08:25 AM
10-25-2003 08:25 AM
Re: unable to create new native thread - linux
To set the number of process per user (nproc)
cat /etc/security/limits.conf
tell you the present values
you may change these to meet your needs.
J-P
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2003 09:28 PM
10-25-2003 09:28 PM
Re: unable to create new native thread - linux
http://linuxperf.nl.linux.org/general/kerneltuning.html
rgrds,
Bart
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2003 11:42 PM
10-25-2003 11:42 PM
Re: unable to create new native thread - linux
I found your link to be very good !
The following entry from a few days back is nearly the same so I have posted A link there to to here
link to other question here below
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=237598
Hope theses cross references help reply to both questions.
J-P
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2004 08:20 PM
11-24-2004 08:20 PM
SolutionFor jvm-options:
-Xssn -Xossn -XX:threadstacksize=n
can set thread stack size to n Kilobytes.
These option works under Solaris, AIX,
but under linux, these options seems lose function. So the only way to decrease thread stack size from default 8M to a resonable size is to use system command:
ulimit -s n
This command can be added into the start up script so that only affect the java server.
For my instance, with default setting, my Weblogic server can only use about 800M Heap. When I set thread stack size to 1024k by:
ulimit -s 1024
I can have a heap size at about 1.5G.
For any process under linux, the total memory size cannot exceed 2G. For a JVM process,
MaxHeap + MaxPermsize + threadstacksizee * numberofThreads < 2G.
So you can adjust your setting by you need.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2005 03:33 PM
03-23-2005 03:33 PM