On Tuesday, April 15, 2014 at 2:00:37 AM UTC+5:30, solid wrote:
>
> Hi Guys
>
> Over the last few weeks I have been getting memory errors with jenkins. It 
> first starts of as "pending—Waiting for next available executor" when 
> attempting to execute a new job. I restart the jenkins daemon only to be 
> confronted with the following error on the web GUI:
>
> Apr 14, 2014 7:11:36 PM SEVERE hudson.triggers.SafeTimerTask run
>
> Timer task hudson.model.Queue$MaintainTask@52d9051 failed
> java.lang.OutOfMemoryError: unable to create new native thread
>       at java.lang.Thread.start0(Native Method)
>       at java.lang.Thread.start(Thread.java:679)
>       at hudson.model.Executor.start(Executor.java:479)
>       at hudson.model.Queue$JobOffer.set(Queue.java:250)
>       at 
> hudson.model.queue.MappingWorksheet$ExecutorChunk.execute(MappingWorksheet.java:164)
>       at 
> hudson.model.queue.MappingWorksheet$ExecutorChunk.access$000(MappingWorksheet.java:112)
>       at 
> hudson.model.queue.MappingWorksheet$Mapping.execute(MappingWorksheet.java:313)
>       at hudson.model.Queue.maintain(Queue.java:1048)
>       at hudson.model.Queue$MaintainTask.doRun(Queue.java:1992)
>       at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
>       at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>       at 
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
>       at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
>       at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
>       at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>       at java.lang.Thread.run(Thread.java:701)
>
>
>
> The only way jenkins will function as normal is if I reboot the server. 
> Jenkins will work fine for a number of days and then the problem will 
> repeat itself. 
>
> I have increased the ulimit for the jenkins user to 8K soft and 16k hard. 
> I have also increased the MaxPermSize and mx values in 
> /etc/sysconfig/jenkins file:
>
> Any guidence on how to resolve this problem would be much appreciated.
>
> Regards
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3e07f427-67cf-4ea4-98e6-2ac967c618c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to