Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Hudson » Cannot allocate memory
Cannot allocate memory [message #1080146] Mon, 05 August 2013 14:22 Go to next message
Kai Zimmermann is currently offline Kai ZimmermannFriend
Messages: 16
Registered: October 2012
Junior Member
Hello,

in our Hudson 3.0.1-b2 we get the following error more often

[INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-source-plugin:2.2.1:jar (attach-sources) on project de.robotron.rcp.ui.nattable: Error creating source archive: Failed to retrieve numeric file attributes using: '/bin/sh -c ls -1laR /hudson/jobs/job/workspace/target/checkout/src': Error while executing process. Cannot run program "/bin/sh": java.io.IOException: error=12, Cannot allocate memory -> [Help 1]

When I look at the processes running on the server, I find many of the same processes that run partially already 1 week.

"ps -ef | grep java" responds with an endless number of:

root 8635 3091 0 Jul25 ? 00:03:06 java -cp /hudson/plugins/maven-plugin/WEB-INF/lib/maven3-agent-2.2.1.jar:/usr/local/apache-maven-3.0.4/boot/plexus-classworlds-2.4.jar org.jvnet.hudson.maven3.agent.Maven3Main /usr/local/apache-maven-3.0.4 /hudson/war/webapp/WEB-INF/lib/hudson-remoting-3.0.0.jar /hudson/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-2.2.1.jar 37781


Do we have configured something wrong?
Re: Cannot allocate memory [message #1080334 is a reply to message #1080146] Mon, 05 August 2013 20:13 Go to previous messageGo to next message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 534
Registered: August 2011
Location: Fremont, CA USA
Senior Member
Looks like Hudson is running as root.

root 8635 3091 0 Jul25 ? 00:03:06 java -cp

You never want to do that. Always run as a user "hudson" or some login with less privileges.


Winston Prakash
Eclipse Hudson team
Re: Cannot allocate memory [message #1080634 is a reply to message #1080334] Tue, 06 August 2013 07:36 Go to previous message
Kai Zimmermann is currently offline Kai ZimmermannFriend
Messages: 16
Registered: October 2012
Junior Member
I do this because something goes wrong ...
Previous Topic:Not able to deploy hudson-3.0.1 in jboss-5.1.0.GA server
Next Topic:Hudson and AJP
Goto Forum:
  


Current Time: Fri Apr 26 14:03:47 GMT 2024

Powered by FUDForum. Page generated in 0.03445 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top