Page 1 of 1

OutOfMemoryError: unable to create new native thread

Posted: Tue Sep 17, 2013 4:22 pm
by Karen
I'm just connecting to a SFTP server to send a file and received an "OutOfMemoryError: unable to create new native thread"

This is the only thing running on my HP-UX server with 48 GB of memory. What would cause this?
I did notice that I have 2 jobs kicking off at the same time to the same place, and they both failed per the job log.

Here is part of the job log, the complete log is attached:
9/17/13 12:15:04 INFO Executing task 'sftp 1.0 (Connect to vendor)'
9/17/13 12:15:06 INFO Executing sub-task 'put'
9/17/13 12:15:08 ERROR [8098 - Connect to Vendor] java.lang.OutOfMemoryError: unable to create new native thread
9/17/13 12:15:08 INFO Finished project 'sendHCR_revmart'
9/17/13 12:15:08 ERROR [8098 - Connect to Vendor] java.lang.OutOfMemoryError: unable to create new native thread
com.linoma.dpa.runtime.JobFailedException: [8098 - Connect to Vendor] java.lang.OutOfMemoryError: unable to create new native

thread
at com.linoma.dpa.runtime.Job.run(Unknown Source)
at com.linoma.dpa.util.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at com.linoma.dpa.util.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.linoma.dpa.ExecutionException: [8098 - Connect to Vendor] java.lang.OutOfMemoryError: unable to create new

native thread

Re: OutOfMemoryError: unable to create new native thread

Posted: Wed Sep 18, 2013 8:25 am
by Support_Rick
Karen,

Increase the open file limit on your system and this should help this issue.

Re: OutOfMemoryError: unable to create new native thread

Posted: Wed Oct 23, 2013 12:47 pm
by Karen
Thank you Rick!

In HP-UX 11iv3, I changed the maxfiles and maxfiles_lim in Kernel Tunables and I haven't seen the error since I changed them and performed the required server reboot.