- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- java.lang.OutOfMemoryError: unable to create new n...
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
07-29-2003 12:45 PM
07-29-2003 12:45 PM
When I try to start weblogic 702 on HP-UX B.11.00 U 9000/800, I get following exception:
Starting WebLogic Server...
java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start(Native Method)
at weblogic.kernel.ExecuteThreadManager.startThreads(ExecuteThreadManage
r.java:177)
at weblogic.kernel.ExecuteThreadManager.setThreadCount(ExecuteThreadMana
ger.java:158)
at weblogic.kernel.ExecuteThreadManager.
:81)
at weblogic.kernel.Kernel.addExecuteQueue(Kernel.java:368)
at weblogic.kernel.Kernel.addExecuteQueue(Kernel.java:358)
at weblogic.jms.dispatcher.DispatcherImpl.
at weblogic.jms.dispatcher.DispatcherManager.
va:57)
at weblogic.jms.dispatcher.DispatcherManager.create(DispatcherManager.ja
va:114)
at weblogic.jms.JMSService.initializeCommon(JMSService.java:377)
at weblogic.jms.JMSServiceServerLifeCycleImpl.initialize(JMSServiceServe
rLifeCycleImpl.java:54)
at weblogic.t3.srvr.ServerLifeCycleList.initialize(ServerLifeCycleList.j
ava:54)
at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:782)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:594)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:282)
at weblogic.Server.main(Server.java:32)
feCycleImpl@1b7dfa>
===============================================
At present, I have following parameter values set on the HP-UX machine:
Parameter Value
===============================================nproc (20+8*MAXUSERS)
maxusers 400
max_thread_proc 2000
nkthread (((NPROC*7)/4)+16)
maxfiles_lim 2048
maxfiles 1024
nfile (16*(NPROC+16+MAXUSERS)/10+32+2*(NPTY+NSTRPTY+NSTRTEL))
ncallout (16+NPROC)
Any help is appreciated.
Thanks & Regards,
Vilas
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 12:55 PM
07-29-2003 12:55 PM
Re: java.lang.OutOfMemoryError: unable to create new native thread
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 01:01 PM
07-29-2003 01:01 PM
Re: java.lang.OutOfMemoryError: unable to create new native thread
I have following values for the mentioned parameters:
# kmtune -q maxdsiz
Parameter Value
===============================================maxdsiz 0x04000000
maxssiz 0x00800000
maxtsiz 0x04000000
How can I increase these values?
Regards,
VIlas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 01:09 PM
07-29-2003 01:09 PM
Re: java.lang.OutOfMemoryError: unable to create new native thread
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 02:45 PM
07-29-2003 02:45 PM
Re: java.lang.OutOfMemoryError: unable to create new native thread
I increased the values of the parameters which you have mentioned, but I'm getting the same error. I set these values using 'kmtune' command. I tried using sam, but while creating new kernal, it gives some error. Please check the attached screenshot for the error.
Regards,
Vilas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2003 01:49 AM
07-30-2003 01:49 AM
Re: java.lang.OutOfMemoryError: unable to create new native thread
Please change the following parameters.
dbc_max_pct 15
dbc_min_pct 5
max_thread_proc 1024
maxdsiz 2 GB
maxdsiz_64bit 3GB
maxfiles 4096
maxfiles_lim 4096
maxssiz 250 MB
maxtsiz_64bit 350MB
maxuprc 2048
msgmnb 65535
msgmax 32767
msgmni 2048
msgseg 32767
msgssz 1024
msgtql 2048
nfile 30000
nlocks 15000
ninode 15000
The above parameters will help you to rectify the problem.
As per you last reply that config error message due to some config file which I cant recall now. You may need to take help of local HP engg for it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2003 02:37 PM
07-30-2003 02:37 PM
Re: java.lang.OutOfMemoryError: unable to create new native thread
I set all the mentioned parameters, except 'nlocks', but no luck. There is no parameter by name 'nlocks'.
Regards,
Vilas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2003 03:24 PM
07-30-2003 03:24 PM
Re: java.lang.OutOfMemoryError: unable to create new native thread
You really need to use a tool named "tusc" for a case like this. We need to see the system calls and error codes to determine the problem. Looking at the log it appears the error happens during thread creation. Threads within a process should share the same text regions....I think the stack is mapped with each thread so it appears to be a data (or heap) sizing issue, hence maxdsiz (if it is indeed a 32 bit process, see previous responses). Also, please be wary or changing 20 - odd kernel parameters in one go even if directed by HP personel.
Tusc for PA can be found here:
http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,2894,00.html
Please use the following options to begin with when starting the application (and post the output if possible) :
tusc -p -v -f -l -u
Also check out the Java page for hpux which lists the required!! patches and certain performance and analytical tools.
Please also provide the output of:
# /usr/sbin/swapinfo -tam
# ipcs -mob
for completeness.
Regards,
James.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2003 03:28 PM
07-30-2003 03:28 PM
Re: java.lang.OutOfMemoryError: unable to create new native thread
Sorry, I forgot, that parameter is nflocks and when you say "no luck" do you mean no luck after the kernel has been rebuilt or when building the new kernel? If the latter is the case do the following:
# cd /stand/build
# cp ../system .
# mk_kernel -s system
Please post the results.
Regards,
James.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2003 08:34 AM
07-31-2003 08:34 AM
Re: java.lang.OutOfMemoryError: unable to create new native thread
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2003 11:11 AM
07-31-2003 11:11 AM
SolutionOK, there is no point looking at the tusc or VM stuff as you have more serious issues. The unsatisfied symbols suggest you have re-installed PHKL_18543. This is called a LITS (line in the sand) patch and should not be re-installed normally, as it will revert your system back to that patch level. You have a few options here:
1) Use "swlist -l product|grep PHKL" and note all kernel patches numerically after 18543. You can then download these and their dependencies from the ITRC and re-install. You can do this in one bundle to save any problems with multiple kernel rebuilds.
2) Use /usr/contrib/bin/check_patches to confirm the analysis and the kernel patches required. If you don't have it you can download and install patch PHCO_27779, no reboot required.
If you are unsure please ask, or post the output from the check_patches utility.
Also, kmtune at 11.00 is just an inetrface to editing the system file. You will not have modified your kernel in any way doing this while not running mk_kernel and kmupdate. Please use SAM if in doubt.
Once you have installed the kernel patches you will need to test the application again.
Regards,
James.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2003 11:54 AM
07-31-2003 11:54 AM
Re: java.lang.OutOfMemoryError: unable to create new native thread
I can't tell you how many kernel changes I made, but I couldn't get by it.
I finally ended up installing WL8.1, and it resolved the issue.
Not sure if this will work for you, but it might.
Good luck-
Stace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2003 09:18 AM
08-04-2003 09:18 AM
Re: java.lang.OutOfMemoryError: unable to create new native thread
First of all thanks for your valuable help. There are around 80-85 patches after 'PHKL_18543'. So, do I need to download all these 80-85 patches or is there any easy way to get them downloaded in a bundle or to get this problem fixed? Also, the utility 'check_patches' is not there; So, I will have to download this utility and apply patch 'PHCO_27779', right?
Regards,
Vilas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2003 09:57 AM
08-04-2003 09:57 AM
Re: java.lang.OutOfMemoryError: unable to create new native thread
Typically OutOfMemory means that the JVM has run out the heap size allocated for it.
There are parameters like
-Xms
-Xmx
-Xmn
-Xss set Java thread stack size. example: -Xss128k
You might want to pass appropriate value by saying
java -Xms64 -Xms128 ... in the startup script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2003 10:07 AM
08-04-2003 10:07 AM
Re: java.lang.OutOfMemoryError: unable to create new native thread
I forgot to attach swlist output. Pleas check the attachment for the required patches.
Paddy, I tried setting heap sizes in the weblogic start script, but it didn't work.
Regards,
Vilas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2003 01:10 PM
08-04-2003 01:10 PM
Re: java.lang.OutOfMemoryError: unable to create new native thread
Here is the output of the check_patches. Please check the attachment.
Thanks & Regards,
Vilas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2003 02:58 PM
08-04-2003 02:58 PM
Re: java.lang.OutOfMemoryError: unable to create new native thread
Sorry, just back online after an odd night shift. It appears you have indeed re-installed PHKL_18543 - to any other forum member not in the know do NOT do this before contacting HP or seeking guidance from the more experienced forum guys here. You will have to re-install ALL kernel patches numerically after 18543 to get your system back in a normal state I'm afraid. You can download all the patches in a single bundle from the ITRC. All you need to do is go here:
http://www4.itrc.hp.com/service/patch/search.do?pageContextName=hpux:::
For each kernel patch in turn add this to the selected patch list. Just hit back on your browser and keep adding the patches, it will store your previous selections. Note this will be a big download so make sure you are referencing your nearest site.
Regards,
James.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2003 10:45 AM
08-05-2003 10:45 AM
Re: java.lang.OutOfMemoryError: unable to create new native thread
Our System Admin started downloading the patches but he says, "When I find the patches from ITRC, and the recommended patch is different from the one I'm finding, I'm supposed to download the recommended one." And further he says, "I downloaded some of the patches (from PHKL-18798 to PHKL-20016) as 'patches1.tar'. When I tried to install them, it stops it because of the error in the kernel. How am I to install these patches if we keep running into this problem regarding the kernel?"
Thanks & Regards,
Vilas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2003 11:36 AM
08-05-2003 11:36 AM
Re: java.lang.OutOfMemoryError: unable to create new native thread
As you are trying to recover the system I would just download the exact patches you already have. You can make a note of any you feel need to be superseded at a later stage. It is important you download all the patches in one bundle to save any kernel rebuild issues. I would exclude PHKL_18543 from the download list as it is large and we know the problem starts here, it does not need to be re-installed. For the swinstall set the reinstall option to true. Once all have been installed your kernel should be rebuilt correctly and you can the reboot.
regards,
James.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2003 07:54 AM
08-07-2003 07:54 AM
Re: java.lang.OutOfMemoryError: unable to create new native thread
Our System Admin finished with applying patches. Attached is the output of 'check_patches' utility. So, is it ok to proceed with this? Also, now 'mk_kernel' command doesn't give any error.
Thanks & Regards,
Vilas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2003 08:06 AM
08-07-2003 08:06 AM
Re: java.lang.OutOfMemoryError: unable to create new native thread
The output of check_patches indicates you have fully recovered from the PHKL_18543 re-install. Is Java still giving the error?
Regards,
James.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2003 10:01 AM
08-07-2003 10:01 AM
Re: java.lang.OutOfMemoryError: unable to create new native thread
After applying patches, I tried starting weblogic and it still gives the same error. But when I checked some kernel parameters, they are set at the default values. So, which parameters should I set or should I follow the parameter values suggested by others? Also, check_patches output shows two errors; so do we need to apply those two patches?
Thanks & Regards,
Vilas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2003 04:14 PM
08-07-2003 04:14 PM
Re: java.lang.OutOfMemoryError: unable to create new native thread
My apologies, yes you will need to re-install PHKL_23193 and PHKL_24011. Just ensure PHKL_18543 is not in the depot with them, we don't want a repeat of what happened.
Also, while you are doing this ensure you have the required Java patches for the version you are using:
http://www.hp.com/products1/unix/java/patches/index.html
If you click on the bundles it mentions the required patches will be listed. You can find your version of java using this command:
# swlist -l product|grep -i java
I think in terms of the kernel parameters we will take Clay's recommendations on the 32 bit maxtsiz, maxdsiz and maxssiz. However, as you haven't posted the 64 bit equivalents I am reluctant to advise changing those. If you want me to have a look post the output from this command:
# kmtune|grep max[tsd]siz_64bit
To change the values and rebuild the kernel using the following steps:
# cd /stand/build
# /usr/lbin/sysadm/system_prep -s system
# kmtune -s maxdsiz=268435456 -S system
# kmtune -s maxssiz=33554432 -S system
# kmtune -s maxdsiz=134217728 -S system
# mk_kernel -s system
(if complete with no errors)
# cp ../system ../system.prev
# cp ../vmunix ../vmunix.prev
# kmupdate
You can then reboot the system:
# cd /
# shutdown -ry 0
Cheers,
James.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2003 04:17 PM
08-07-2003 04:17 PM
Re: java.lang.OutOfMemoryError: unable to create new native thread
# kmtune -s maxtsiz=134217728 -S system
spot who cuts and pastes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2003 10:22 AM
08-08-2003 10:22 AM
Re: java.lang.OutOfMemoryError: unable to create new native thread
Our System Admin has problem downloading/installing PHKL_23193 and PHKL_24011 patches. He says,
"when I select to download PHKL-23193/PHKL_24011, PHKL-18543 is part of the dependencies". But we are not suppose to reinstall patch 18543. So he further says, "but how can you install 23193 if 18543 is required; Is it possible just to not select it when I download the patches, because I can't "remove" it from the patch list."
Thanks & Regards,
Vilas