I somehow want to redue the startup time for my ecommerce site. Below are some threads posted by Cameron - information which I need to know whether it is valid today or not.
1. Logging. In debug.properties, log only to file and not stdout. Set logging to WARN for everything. 2. Modules. a. Remove all modules from hot-deploy and specialized except the ones you actually use. You might also be able to remove some of the modules in applications but they do not have a hierarchical dependency, so you can probably only remove one or two. We only removed the marketing module, David has been quite clear about this in previous posts - its generally more trouble than its worth. b. WITHIN the modules, deactivate any webapp you ain't using (simply comment out the relevant part in ofbiz-component.xml). For example, the only module we left up, apart from our own custom module, was webtools. 3. Containers a. For a standard webapp system, we found that we can get by with only the following 5 containers, we removed everything else: component-container classloader-container naming-container catalina-container b. Inside catalina-container, only activate the containers you need - very often it is only http, https or ajp, depending on your setup 4. Memory. a. Give the JVM at least 384Mb of memory, otherwise it really has trouble setting everything up. You can set this either in startofbiz.bat/sh, or in service.conf if you are running as a windows service (see my recent tutorial on wiki). There are some other points to explore, which for various reasons I haven't tried yet. 5. Entity Engine OFBiz does a lot of clever stuff when it starts up to match XML entity definitions with what is actually in the DB. But in a production system you aren't going to change this very regularly. So theoretically you should switch it off, and shave off a couple more seconds at start up. In practice, I only managed the following config for my delegator in entityengine.xml: check-on-start="true" add-missing-on-start="true" check-pks-on-start="false" I wanted to set all 3 to false, but when I did this, the JVM went into an endless loop and then bust with an OutOfMemoryError. If anyone could shed any light I'd be grateful. 6. JDK 1.6 I have run my application without any probs on JDK1.6, which is supposed to up to a zillion % faster than 1.5 in certain situations according to SUN. But I haven't taken any measurements yet, will let you know when I do. 7. JNDI >From what I have seen of OFBiz internals so far, it doesn't really use JNDI for much. So I will investigate taking out this container as well, as for my scenario, I am not getting anything from JNDI. -- View this message in context: http://ofbiz.135035.n4.nabble.com/Performance-of-Ofbiz-tp4586418p4603549.html Sent from the OFBiz - User mailing list archive at Nabble.com.