Hello, I'd recommend to stop tomcat (or all spacewalk services), increase the -Xmx parameter (heap size) in /etc/sysconfig/tomcat[56]* file, start the service(s) and try again.
As a quick workaround, it could work. Regards, -- Tomas Lestach Red Hat Satellite Engineering, Red Hat ----- Original Message ----- > > > > > The spacewalk we are using is 2.0. It is running fine except deleting bulk > amount of packages. we need to remove some of repos and channels no longer > needed and free up some space. I used spacecmd to do this. > > spacecmd > repo_delete rhel5_i386_os > repo_delete rhel5_x86_64_extras > repo_delete rhel5_x86_64_os > repo_delete rhel5_x86_64_rhn-tools > repo_delete rhel5_x86_64_supplementary > softwarechannel_delete rhel5* > > channels and repos removed correctly, but when I try to remove packages which > do not belong to any channels, it failed: > spacecmd {SSM:0}> package_listorphans > ERROR: <ProtocolError for localhost/rpc/api: 503 Service Temporarily > Unavailable> > > spacecmd {SSM:0}> package_removeorphans > ERROR: <ProtocolError for localhost/rpc/api: 500 Internal Server Error> > > if I delete packages from Web GUI for 500 packages at a time, it works fine. > when I look at /var/log/rhn/rhn_web_api.log . this is what I see > > [2015-05-01 13:20:26,073] ERROR - REQUESTED FROM: 127.0.0.1 CALL: > channel.software.listPackagesWithoutChannel(918xd5d704017ca211136d82223faaf455ef) > CALLER: (isoadmin) TIME: 25.504 seconds redstone.xmlrpc.XmlRpcFault: > unhandled internal exception: Java heap space at > com.redhat.rhn.frontend.xmlrpc.BaseHandler.invoke(BaseHandler.java:165) at > redstone.xmlrpc.XmlRpcDispatcher.dispatch(XmlRpcDispatcher.java:123) at > com.redhat.rhn.frontend.xmlrpc.RhnXmlRpcServer.execute(RhnXmlRpcServer.java:54) > at > com.redhat.rhn.frontend.xmlrpc.XmlRpcServlet.doPost(XmlRpcServlet.java:162) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129) > at > com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > com.redhat.rhn.frontend.servlets.LocalizedEnvironmentFilter.doFilter(LocalizedEnvironmentFilter.java:67) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > com.redhat.rhn.frontend.servlets.EnvironmentFilter.doFilter(EnvironmentFilter.java:100) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > com.redhat.rhn.frontend.servlets.SessionFilter.doFilter(SessionFilter.java:57) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > com.redhat.rhn.frontend.servlets.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:97) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) > at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) at > org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291) at org. > > > _______________________________________________ > Spacewalk-list mailing list > Spacewalk-list@redhat.com > https://www.redhat.com/mailman/listinfo/spacewalk-list _______________________________________________ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list