[JBoss AS7 Development] - AS 7 startup time showdown
by Dan Allen
Dan Allen [http://community.jboss.org/people/dan.j.allen] modified the document:
"AS 7 startup time showdown"
To view the document, visit: http://community.jboss.org/docs/DOC-16971
--------------------------------------------------------------
How fast does AS 7 start on your computer? This page is a crowdsourced benchmark to see what type of times people are getting. It could also give you an idea if it's time to upgrade your computer to more cores.
When you start the server the first time, it starts slower than subsequent starts. We are interested in your best times :)
During the first startup, AS 7 builds caches and indexes and performs precompilations, "getting to know" your installation and libraries. The same optimizations are done on your deployments, so subsequent deployments are typically faster than the first.
On with the showdown! Feel free to edit this page and add your metrics. We are most interested in *stock JVM settings*, just to even the playing field. If you do add flags, please note that in the JVM column. We ask that you not step on previous entries.
h3. AS 7 (Web Profile)
|| *Username* || *Processor / Chipset* || *RAM* || *HardDrive Speed* || *Operating System* || *JVM* || *Startup Time* ||
| dan.j.allen | Quad i7-2620M 2.70GHz 64-bit | 8G 1333MHz | 7200 RPM | Ubuntu 11.04 x86_64 2.6.38-8 | OpenJDK 1.6.0_22 64-Bit (stock settings) | 1590ms |
| dan.j.allen | Quad i7-2620M 2.70GHz 64-bit | 8G 1333MHz | 7200 RPM | Ubuntu 11.04 x86_64 2.6.38-8 | OpenJDK 1.6.0_22 64-Bit (JVM flags Group A) | 1293ms |
| david bosschaert | Quad i7 2.2GHz 64-bit | 8G 1333MHz | 7200 RPM | Mac OS X 10.6.8 Darwin 10.8.0 x86_64 | Apple Java 1.6.0_26 | 1479ms |
| ssilvert | Intel ® Core™ 2 Duo i7-620M -i7
(2.66GHz, 4MB L3, 1066MHz FSB, 35W) | 8GB 1333MHz | 7200 RPM | Windows 7 Enterprise SP1 | Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) | 2169ms |
| tkimura | Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz | 8GB 1333MHz | 7200 RPM | Fedora 15
2.6.38.8-32.fc15.x86_64 | OpenJDK 1.6.0_22
fedora-58.1.10.2.fc15-x86_64 | 1450ms |
| jason.greene | i7 Dual Core @ 2.66 GHz | 8GB 1067MHZ | 7200 RPM | Mac OS X 10.6.8 (forced 64 bit kernel) | Apple Java 1.6.0_26 (-d32 bit mode) | 1486ms |
| jason.greene | i7 Dual Core @ 2.66 GHz | 8GB 1067MHZ | 7200 RPM | Mac OS X 10.6.8 (forced 64 bit kernel) | Apple Java 1.6.0_26 (stock settings) | 2041ms |
| goldmann | Intel Core i5 2.4 Ghz | 8GB 1067MHZ | 7200 RPM | Mac OS X 10.6.7 | Apple Java 1.6.0_26 (stock settings) | 2476ms |
| wolfc | Intel Core i7 860 2.80 Ghz | 6GB 1333Mhz | RAID0 2x7200 RPM | Ubuntu 11.04 x86_64 2.6.38-8 | OpenJDK 1.6.0_22 64-bit | 1287ms (w. patch) |
| mike.pellegrini | Intel Core i5 560 2.66 GHz | 4GB
1067MHz | 7200 RPM | Fedora Core 15 2.6.38.8-32.fc15.x86_64 | Java(TM) SE Runtime Environment (build 1.6.0_26-b03) | 1930ms |
h3. Older AS Versions
|| *Username* || *Processor / Chipset* || *RAM* || *HardDrive Speed* || *Operating System* || *JVM* || *AS Version* || *Startup Time* ||
| dan.j.allen | Quad i7-2620M 2.70GHz 64-bit | 8G 1333MHz | 7200 RPM | Ubuntu 11.04 x86_64 2.6.38-8 | OpenJDK 1.6.0_22 64-Bit (stock settings) | 6.0.0.Final | 13s |
| mike.pellegrini | Intel Core i5 560 2.66 GHz | 4GB
1067MHz | 7200 RPM | Fedora Core 15 2.6.38.8-32.fc15.x86_64 | Java(TM) SE Runtime Environment (build 1.6.0_26-b03) | 5.1.0 | 23s. |
h3. Optimizations
You get better startup times with 32 bit over 64 bit, because of the smaller integer size. If you are on a 64 bit machine, you can do one of two things to get 32 bit performance:
* Run in 32 bit mode using the JVM flag: -d32 (Mac and Windows)
* Use the JVM compression flag: -XX:+UseCompressedOops
There are also some other JVM flags that will speed things up:
* -noverify
* -XX:+DisableExplicitGC
* -client
JVM flag legend (for table above):
* *Group A*: -client -noverify -XX:+UseFastAccessorMethods -XX:+DisableExplicitGC -XX:+UseCompressedOops
Let the best machine win!
--------------------------------------------------------------
Comment by going to Community
[http://community.jboss.org/docs/DOC-16971]
Create a new document in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=102&co...]
13 years, 2 months
[JBoss AS7 Development] - AS 7 startup time showdown
by Carlo de Wolf
Carlo de Wolf [http://community.jboss.org/people/wolfc] modified the document:
"AS 7 startup time showdown"
To view the document, visit: http://community.jboss.org/docs/DOC-16971
--------------------------------------------------------------
How fast does AS 7 start on your computer? This page is a crowdsourced benchmark to see what type of times people are getting. It could also give you an idea if it's time to upgrade your computer to more cores.
When you start the server the first time, it starts slower than subsequent starts. We are interested in your best times :)
During the first startup, AS 7 builds caches and indexes and performs precompilations, "getting to know" your installation and libraries. The same optimizations are done on your deployments, so subsequent deployments are typically faster than the first.
On with the showdown! Feel free to edit this page and add your metrics. We are most interested in *stock JVM settings*, just to even the playing field. If you do add flags, please note that in the JVM column. We ask that you not step on previous entries.
h3. AS 7 (Web Profile)
|| *Username* || *Processor / Chipset* || *RAM* || *HardDrive Speed* || *Operating System* || *JVM* || *Startup Time* ||
| dan.j.allen | Quad i7-2620M 2.70GHz 64-bit | 8G 1333MHz | 7200 RPM | Ubuntu 11.04 x86_64 2.6.38-8 | OpenJDK 1.6.0_22 64-Bit (stock settings) | 1590ms |
| dan.j.allen | Quad i7-2620M 2.70GHz 64-bit | 8G 1333MHz | 7200 RPM | Ubuntu 11.04 x86_64 2.6.38-8 | OpenJDK 1.6.0_22 64-Bit (JVM flags Group A) | 1293ms |
| david bosschaert | Quad i7 2.2GHz 64-bit | 8G 1333MHz | 7200 RPM | Mac OS X 10.6.8 Darwin 10.8.0 x86_64 | Apple Java 1.6.0_26 | 1479ms |
| ssilvert | Intel ® Core™ 2 Duo i7-620M -i7
(2.66GHz, 4MB L3, 1066MHz FSB, 35W) | 8GB 1333MHz | 7200 RPM | Windows 7 Enterprise SP1 | Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) | 2169ms |
| tkimura | Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz | 8GB 1333MHz | 7200 RPM | Fedora 15
2.6.38.8-32.fc15.x86_64 | OpenJDK 1.6.0_22
fedora-58.1.10.2.fc15-x86_64 | 1450ms |
| jason.greene | i7 Dual Core @ 2.66 GHz | 8GB 1067MHZ | 7200 RPM | Mac OS X 10.6.8 (forced 64 bit kernel) | Apple Java 1.6.0_26 (-d32 bit mode) | 1486ms |
| jason.greene | i7 Dual Core @ 2.66 GHz | 8GB 1067MHZ | 7200 RPM | Mac OS X 10.6.8 (forced 64 bit kernel) | Apple Java 1.6.0_26 (stock settings) | 2041ms |
| goldmann | Intel Core i5 2.4 Ghz | 8GB 1067MHZ | 7200 RPM | Mac OS X 10.6.7 | Apple Java 1.6.0_26 (stock settings) | 2476ms |
| wolfc | Intel Core i7 860 2.80 Ghz | 6GB 1333Mhz | RAID0 2x7200 RPM | Ubuntu 11.04 x86_64 2.6.38-8 | OpenJDK 1.6.0_22 64-bit | 1287ms (w. patch) |
h3. Older AS Versions
|| *Username* || *Processor / Chipset* || *RAM* || *HardDrive Speed* || *Operating System* || *JVM* || *AS Version* || *Startup Time* ||
| dan.j.allen | Quad i7-2620M 2.70GHz 64-bit | 8G 1333MHz | 7200 RPM | Ubuntu 11.04 x86_64 2.6.38-8 | OpenJDK 1.6.0_22 64-Bit (stock settings) | 6.0.0.Final | 13s |
h3. Optimizations
You get better startup times with 32 bit over 64 bit, because of the smaller integer size. If you are on a 64 bit machine, you can do one of two things to get 32 bit performance:
* Run in 32 bit mode using the JVM flag: -d32 (Mac and Windows)
* Use the JVM compression flag: -XX:+UseCompressedOops
There are also some other JVM flags that will speed things up:
* -noverify
* -XX:+DisableExplicitGC
* -client
JVM flag legend (for table above):
* *Group A*: -client -noverify -XX:+UseFastAccessorMethods -XX:+DisableExplicitGC -XX:+UseCompressedOops
Let the best machine win!
--------------------------------------------------------------
Comment by going to Community
[http://community.jboss.org/docs/DOC-16971]
Create a new document in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=102&co...]
13 years, 2 months
[jBPM Development] - Unable to mark a task completed when running the task in a separate thread
by Connie Yang
Connie Yang [http://community.jboss.org/people/connie.yang] created the discussion
"Unable to mark a task completed when running the task in a separate thread"
To view the discussion, visit: http://community.jboss.org/message/612820#612820
--------------------------------------------------------------
Hi,
I have a WorkItemHandler that can run the service task either in the main thread or in a separate thread. This is my way of handling for-each parallel (aka fanout). When the service task is run in a separate thread, I have been experiencing a NullPointerException with the following stack trace upon marking the task completed (via NodeInstanceImpl.triggerCompleted). What am I missing?
1. java.lang.NullPointerException
at org.jbpm.process.instance.impl.ProcessInstanceImpl.getProcess(ProcessInstanceImpl.java:67)
at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.getWorkflowProcess(WorkflowProcessInstanceImpl.java:180)
at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.getNodeContainer(WorkflowProcessInstanceImpl.java:68)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.getNode(NodeInstanceImpl.java:100)
at org.jbpm.workflow.instance.node.ActionNodeInstance.getActionNode(ActionNodeInstance.java:35)
at org.jbpm.workflow.instance.node.ActionNodeInstance.internalTrigger(ActionNodeInstance.java:43)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:185)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:150)
at org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl.triggerCompleted(ExtendedNodeInstanceImpl.java:47)
at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:162)
at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:143)
at org.jbpm.workflow.instance.node.WorkItemNodeInstance.triggerCompleted(WorkItemNodeInstance.java:239)
at org.jbpm.workflow.instance.node.WorkItemNodeInstance.workItemCompleted(WorkItemNodeInstance.java:301)
at org.jbpm.workflow.instance.node.WorkItemNodeInstance.signalEvent(WorkItemNodeInstance.java:277)
at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(WorkflowProcessInstanceImpl.java:333)
at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:117)
at com.ebay.cloud.orchest.jbpm.LcmPojoWorkItemHandler$1.run(LcmPojoWorkItemHandler.java:95)
at com.ebay.kernel.executor.TaskExecutor$Adapter.call(TaskExecutor.java:587)
Thanks in advance!
Connie
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/612820#612820]
Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 2 months