Graham,

I think you make be on to something with the loading of xmlui. I have now 
discovered that the problem ONLY occurs when I deploy xmlui or jspui. I can 
start every other webapp and the entire startup process takes just over 2 
seconds. Starting either xmlui or jspui results in a startup of nearly 3 
minutes each. Also, the only time that I see the "No appenders could be found 
for logger warnings" is when I start one of these two webapps.

I am entirely at a loss for why this is happening. It never happened prior to 
the upgrade.

Blessings,
Jason



From: Graham Triggs [mailto:[email protected]]
Sent: Wednesday, April 07, 2010 5:50 AM
To: Jason Fowler
Cc: [email protected]
Subject: Re: [Dspace-tech] log4j causing slowness for DSpace

Jason,

It's highly unlikely that Log4J is causing the startup to be slow. Whilst your 
startup takes in the region of 10 minutes, there is no indication in the log as 
to when each of those log4j warnings appeared, or what was occurring at the 
time.

The regular re-occurrence of org.apache.commons.digester.Digester.sax appender 
warnings, and the org.apache.catalina.startup.Embedded warning, would suggest 
that the application server itself (Tomcat?) is missing some logging 
configuration.

Those Digester messages look like they relate to the initialization of each 
webapp deployed to the server - ie. where it loads WEB-INF/web.xml (and 
correlating with the 'using dspace.cfg' messages that would also appear with 
each one).

Deploying multiple web applications can take some time - loading the JARs, 
starting any listeners / servlets that are set to load on startup. In the case 
of xmlui (and Solr?) at least that will trigger a fairly significant 
initialization process.

And it appears that you are deploying the xmlui application twice (once as 
xmlui, and once as root?)

Regards,
G

On 5 April 2010 21:50, Jason Fowler <[email protected]<mailto:[email protected]>> 
wrote:
I've been beating my brains in over this issue, and I have tried every possible 
solution I can find. I've recently migrated to 1.6.0, and since making the 
change, problems with log4j occur at startup. This makes my Dspace startup take 
ten minutes. I've narrowed down the problem (I think) to being an issue with 
log4j.

I just appended a date stamp to my catalina.out file while I restarted. I have 
output it below. The first thing that shows up after the stamp is log4j errors. 
After churning for 10 minutes, everything works fine, even logging, solr, etc. 
Does anyone have any idea what might be causing this problem? If so, many, many 
thanks in advance.

Mon Apr  5 15:29:51 CDT 2010
log4j:WARN No appenders could be found for logger 
(org.apache.catalina.startup.Embedded).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN No appenders could be found for logger 
(org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
INFO: Loading provided config file: /mnt/storage/dspace/config/dspace.cfg
INFO: Using dspace provided log configuration (log.init.config)
INFO: Loading: /mnt/storage/dspace/config/log4j.properties
Loading catalog: 
file:/usr/local/apache-tomcat-5.5.26/work/Catalina/localhost/xmlui/cocoon_xml_resolver_entities/catalog
log4j:WARN No appenders could be found for logger 
(org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
INFO: Loading provided config file: /mnt/storage/dspace/config/dspace.cfg
INFO: Using dspace provided log configuration (log.init.config)
INFO: Loading: /mnt/storage/dspace/config/log4j.properties
- Loading provided config file: /mnt/storage/dspace/config/dspace.cfg
- Using dspace provided log configuration (log.init.config)
- Loading: /mnt/storage/dspace/config/log4j.properties
log4j:WARN No appenders could be found for logger 
(org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
INFO: Loading provided config file: /mnt/storage/dspace/config/dspace.cfg
INFO: Using dspace provided log configuration (log.init.config)
INFO: Loading: /mnt/storage/dspace/config/log4j.properties
log4j:WARN No appenders could be found for logger 
(org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
INFO: Loading provided config file: /mnt/storage/dspace/config/dspace.cfg
INFO: Using dspace provided log configuration (log.init.config)
INFO: Loading: /mnt/storage/dspace/config/log4j.properties
Loading catalog: 
file:/usr/local/apache-tomcat-5.5.26/work/Catalina/localhost/_/cocoon_xml_resolver_entities/catalog
log4j:WARN No appenders could be found for logger 
(org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
INFO: Loading provided config file: /mnt/storage/dspace/config/dspace.cfg
INFO: Using dspace provided log configuration (log.init.config)
INFO: Loading: /mnt/storage/dspace/config/log4j.properties
Apr 5, 2010 3:39:31 PM org.apache.solr.servlet.SolrDispatchFilter init
INFO: SolrDispatchFilter.init()
Apr 5, 2010 3:39:31 PM org.apache.solr.core.SolrResourceLoader locateInstanceDir
INFO: Using JNDI solr.home: /mnt/storage/dspace/solr

Jason Fowler, CA, MSLS
Archives and Special Collections Librarian
The Southern Baptist Theological Seminary
Vice President, ALABI
[email protected]<mailto:[email protected]>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
DSpace-tech mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/dspace-tech

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
  • [Dspac... Jason Fowler
    • R... Thornton, Susan M. (LARC-B702)[RAYTHEON TECHNICAL SERVICES COMPANY]
      • ... Mark H. Wood
    • R... Graham Triggs
      • ... Jason Fowler

Reply via email to