[Performance Tuning] - Maximum XMX value on 32bit Windows Machine
by ntnlljboss
Goodmorning,
I'have some problems while setting the XMX JM value bigger than 1300m.
When i set 1400 or 1500m the error returned by the run.sh is:
---
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
---
The o.s. is Windows Server 2003 32bit with this memory usage
Total Physical Memory 16,383.08 MB
Available Physical Memory 10.37 GB
Total Virtual Memory 23.41 GB
Available Virtual Memory 13.21 GB
the server has more than 10GB of free physical memory. Searching google i found that the problem maybe is a limit in the address space on the 32bit version of Windows Server 2003. Is really possibile that i can't start JV istance with an XMX value bigger than 1300m?
I have not experience with JBoss@Windows 32, any suggestion appreciated
Thanks in advance
Antonello
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227148#4227148
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227148
15 years, 7 months
[JBoss Messaging] - Re: Best way to pause delivery of messages on a queue
by rnicholson10
I'm using MDB's so I won't have direct access to the connection.
I simply want the MDB to stop firing onMessage until I tell the queue to start delivering again (without stopping clients from sending messages to the queue).
I have the following code for JMSContainerInvokerMBean (it's in the package (org.jboss.ejb.plugins.jms):
| MBeanServer mbeanServer = MBeanServerLocator.locateJBoss();
| JMSContainerInvokerMBean invoker;
| try
| {
| invoker = (JMSContainerInvokerMBean) MBeanProxy.get(
| JMSContainerInvokerMBean.class, objectName, mbeanServer);
| if (method == STOP)
| {
| invoker.stopDelivery();
| }
| else if (method == START)
| {
| invoker.startDelivery();
| }
| }
| catch( Exception e)
| {
| e.printStackTrace();
| }
|
Would the JMX forum be a better place to ask this question? Unfortunately the documentation is not very informative concerning the method calls above.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227140#4227140
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227140
15 years, 7 months
[EJB 3.0] - The Stacktrace
by D6L
INFO: EJB5018: An exception was thrown during an ejb invocation on [RoadDAO]
| INFO: javax.ejb.EJBException
| at com.sun.ejb.containers.BaseContainer.processSystemException(BaseContainer.java:3894)
| at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3794)
| at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3596)
| at com.sun.ejb.containers.WebServiceInvocationHandler.invoke(WebServiceInvocationHandler.java:201)
| at $Proxy220.listRoad(Unknown Source)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at com.sun.enterprise.webservice.InvokerImpl.invoke(InvokerImpl.java:78)
| at com.sun.enterprise.webservice.EjbInvokerImpl.invoke(EjbInvokerImpl.java:82)
| at com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:146)
| at com.sun.xml.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethodHandler.java:257)
| at com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:93)
| at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
| at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
| at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
| at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
| at com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl.process(AbstractTubeImpl.java:106)
| at com.sun.enterprise.webservice.MonitoringPipe.process(MonitoringPipe.java:147)
| at com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:115)
| at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
| at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
| at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
| at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
| at com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl.process(AbstractTubeImpl.java:106)
| at com.sun.xml.ws.tx.service.TxServerPipe.process(TxServerPipe.java:317)
| at com.sun.enterprise.webservice.CommonServerSecurityPipe.processRequest(CommonServerSecurityPipe.java:222)
| at com.sun.enterprise.webservice.CommonServerSecurityPipe.process(CommonServerSecurityPipe.java:133)
| at com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:115)
| at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
| at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
| at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
| at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
| at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:243)
| at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:444)
| at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
| at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135)
| at com.sun.enterprise.webservice.Ejb3MessageDispatcher.handlePost(Ejb3MessageDispatcher.java:113)
| at com.sun.enterprise.webservice.Ejb3MessageDispatcher.invoke(Ejb3MessageDispatcher.java:87)
| at com.sun.enterprise.webservice.EjbWebServiceServlet.dispatchToEjbEndpoint(EjbWebServiceServlet.java:228)
| at com.sun.enterprise.webservice.EjbWebServiceServlet.service(EjbWebServiceServlet.java:157)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
| at com.sun.enterprise.web.AdHocContextValve.invoke(AdHocContextValve.java:114)
| at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
| at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
| at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
| at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:87)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
| at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
| at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
| at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
| at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
| at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
| at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
| at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
| at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
| at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288)
| at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647)
| at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:579)
| at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:831)
| at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
| at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
| at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
| at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
| at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
| Caused by: javax.persistence.PersistenceException: org.hibernate.type.SerializationException: could not deserialize
| at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:614)
| at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:76)
| at lu.luxair.biz.airlines.fromto.dao.RoadDAO.listRoad(RoadDAO.java:50)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1011)
| at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:175)
| at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2920)
| at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4011)
| at com.sun.ejb.containers.WebServiceInvocationHandler.invoke(WebServiceInvocationHandler.java:190)
| ... 63 more
| Caused by: org.hibernate.type.SerializationException: could not deserialize
| at org.hibernate.util.SerializationHelper.deserialize(SerializationHelper.java:188)
| at org.hibernate.util.SerializationHelper.deserialize(SerializationHelper.java:211)
| at org.hibernate.type.SerializableType.fromBytes(SerializableType.java:105)
| at org.hibernate.type.SerializableType.get(SerializableType.java:62)
| at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:184)
| at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:173)
| at org.hibernate.type.AbstractType.hydrate(AbstractType.java:105)
| at org.hibernate.type.ComponentType.hydrate(ComponentType.java:583)
| at org.hibernate.type.ComponentType.nullSafeGet(ComponentType.java:298)
| at org.hibernate.loader.Loader.getKeyFromResultSet(Loader.java:1121)
| at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:588)
| at org.hibernate.loader.Loader.doQuery(Loader.java:724)
| at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
| at org.hibernate.loader.Loader.doList(Loader.java:2228)
| at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2125)
| at org.hibernate.loader.Loader.list(Loader.java:2120)
| at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:401)
| at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:361)
| at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
| at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1148)
| at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
| at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:67)
| ... 73 more
| Caused by: java.io.StreamCorruptedException: invalid stream header
| at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:753)
| at java.io.ObjectInputStream.<init>(ObjectInputStream.java:268)
| at org.hibernate.util.SerializationHelper$CustomObjectInputStream.<init>(SerializationHelper.java:223)
| at org.hibernate.util.SerializationHelper.deserialize(SerializationHelper.java:180)
| ... 94 more
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227138#4227138
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227138
15 years, 7 months