Re: [jboss-user] [Performance Tuning] - Memory consumption 1h after JBoss start
by Peter Johnson
Peter Johnson [http://community.jboss.org/people/peterj] replied to the discussion
"Memory consumption 1h after JBoss start"
To view the discussion, visit: http://community.jboss.org/message/553989#553989
--------------------------------------------------------------
Ruchir, your suggested newsize is too small for the heap size specified - the newsize should be 1/3 - 1/4 the size of the heap. By the way, based on my tests, if you do not specify a newsize, JDK 6 eventually adjusts it to about 1/3 - 1/4 the heap size (just realized that was with the standard collection, not the CMS collector, but I suspect that letting the ).
Setting MaxTenuringThreshold to 0 is a bad idea - I puts a larger strain on the CMS collector and degrades overall applicaiton performance. It is much better ot let needed objects survive a few minor collections before being tenured, and thus let the minor collector gather all the garbage, than requiring the CMS collector to collect objects that die soon. Besides, setting the UseConcMarkSweepGC sets MaxTenuringThreshold to 0 by default (and also sets the survivor spaces to a really small value.
It is not always advisable to set UseConcMarkSweepGC. You must test your application both with and without it to determine hte best performance. Also, with UseConcMarkSweepGC, during a major collection, one of your CPUs will be dedicated to garbage collection. If you have only 2 CPUs, then you will reduce the amount of load your app can handle by 50%.
For suggestions on how to gather GC data and analyze it, see these white papers:
Java Garbage Collection Statistical Analysis 101
Java Garbage Collection Performance Analysis 201 (this white paper discusses the CMS collector and its gotchas)
at http://www.cmg.org/cgi-bin/search.cgi?q=java+peter+johnson&x=30&y=10 http://www.cmg.org/cgi-bin/search.cgi?q=java+peter+johnson&x=30&y=10
h2.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/553989#553989]
Start a new discussion in Performance Tuning at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 2 months
[jBPM Development] - Can't start jbpm3 process
by Vladimir Kiryakov
Vladimir Kiryakov [http://community.jboss.org/people/vladimir_kiryakov] created the discussion
"Can't start jbpm3 process"
To view the discussion, visit: http://community.jboss.org/message/553975#553975
--------------------------------------------------------------
h2all!!! I have a some problem with jbpm3 porcess... When I trying start my process from jbpm-console(signal link) i have some error like this:
17:10:54,923 ERROR [GraphElement] action threw exception: couldn't get value for file 'classes/com/provoxlab/handler/Logger.class'
org.jbpm.JbpmException: couldn't get value for file 'classes/com/provoxlab/handler/Logger.class'
at org.jbpm.file.def.FileDefinition.getBytes(FileDefinition.java:196)
at org.jbpm.instantiation.ProcessClassLoader.findClass(ProcessClassLoader.java:116)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.provoxlab.handler.State1.execute(State1.java:16)
at org.jbpm.graph.def.Action.execute(Action.java:125)
at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:281)
at org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:238)
at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:212)
at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:195)
at org.jbpm.graph.def.Node.enter(Node.java:369)
at sun.reflect.GeneratedMethodAccessor445.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:197)
at org.jbpm.graph.def.Node_$$_javassist_81.enter(Node_$$_javassist_81.java)
at org.jbpm.graph.def.Transition.take(Transition.java:166)
at org.jbpm.graph.def.Node.leave(Node.java:477)
at org.jbpm.graph.node.StartState.leave(StartState.java:80)
at sun.reflect.GeneratedMethodAccessor443.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:197)
at org.jbpm.graph.def.Node_$$_javassist_81.leave(Node_$$_javassist_81.java)
at org.jbpm.graph.exe.Token.signal(Token.java:226)
at org.jbpm.graph.exe.Token.signal(Token.java:149)
at org.jbpm.jsf.core.action.SignalActionListener.handleAction(SignalActionListener.java:52)
at org.jbpm.jsf.core.impl.JbpmActionListenerWrapper.processAction(JbpmActionListenerWrapper.java:82)
at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:771)
at javax.faces.component.UICommand.broadcast(UICommand.java:372)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
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:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at org.jbpm.file.def.FileDefinition.getBytesFromDb(FileDefinition.java:213)
at org.jbpm.file.def.FileDefinition.getBytes(FileDefinition.java:193)
... 57 more
17:10:54,939 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: 22001
17:10:54,940 ERROR [JDBCExceptionReporter] Data truncation: Data too long for column 'EXCEPTION_' at row 1
What i do wrong? please anybody help me
And the second question.... How to instal the schedule of start of process? For example in each 5 hours.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/553975#553975]
Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 2 months