Jira fresh install is very slow

Edouard Pagnier March 31, 2015

Hi,

I just install JIRA on a fresh Debian 7 server and it's running so slow (sometimes more than a minute to display a page!).

I allocated 2Gb of RAM (4Gb total for the server) for the JVM (only JIRA is using Java).

CPU: Intel(R) Core(TM)2 Duo CPU     E8400  @ 3.00GHz, it's not a very powerful one, but I have nothing else but JIRA running on my server.

Sometimes everything works well and then it become back very slow again...

I'm doing an evaluation (one project, few issues, about 5 users) on the product here, considering to buy a license at the end of the month, but I'm a bit confused about performance..

Is my server not powerful enough ?

Do you have some advice to optimize my JIRA configuration ?

Thanks !

2 answers

0 votes
Edouard Pagnier April 1, 2015

Hi, thanks for the answer.

Here is my environnement setup (from JIRA logs):

__ Environment _____________________________

     JIRA Build                                    : 6.4#64014-sha1:a67c3532e05d88bdc00cabc2cf5e0c6b82fa6023
     Build Date                                    : Mon Mar 09 00:00:00 ICT 2015
     JIRA Installation Type                        : Standalone
     Application Server                            : Apache Tomcat/7.0.55 - Servlet API 3.0
     Java Version                                  : 1.8.0_11 - Oracle Corporation
     Current Working Directory                     : /opt/atlassian/jira/bin
     Maximum Allowable Memory                      : 1962MB
     Total Memory                                  : 1962MB
     Free Memory                                   : 1631MB
     Used Memory                                   : 331MB
     Memory Pool: Code Cache                       : Code Cache: init = 2359296(2304K) used = 8803904(8597K) committed = 8847360(8640K) max = 251658240(245760K)
     Memory Pool: Metaspace                        : Metaspace: init = 0(0K) used = 11523808(11253K) committed = 11689984(11416K) max = -1(-1K)
     Memory Pool: PS Eden Space                    : PS Eden Space: init = 536870912(524288K) used = 246645760(240865K) committed = 536870912(524288K) max = 536870912(524288K)
     Memory Pool: PS Survivor Space                : PS Survivor Space: init = 89391104(87296K) used = 89387072(87292K) committed = 89391104(87296K) max = 89391104(87296K)
     Memory Pool: PS Old Gen                       : PS Old Gen: init = 1431830528(1398272K) used = 11497704(11228K) committed = 1431830528(1398272K) max = 1431830528(1398272K)
     JVM Input Arguments                           : -Djava.util.logging.config.file=/opt/atlassian/jira/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -XX:MaxPermSize=384m -Xms2048m -Xmx2048m -Djava.awt.headless=true -Datlassian.standalone=JIRA -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dmail.mime.decodeparameters=true -Dorg.dom4j.factory=com.atlassian.core.xml.InterningDocumentFactory -XX:+PrintGCDateStamps -XX:-OmitStackTraceInFastThrow -Djava.endorsed.dirs=/opt/atlassian/jira/endorsed -Dcatalina.base=/opt/atlassian/jira -Dcatalina.home=/opt/atlassian/jira -Djava.io.tmpdir=/opt/atlassian/jira/temp
     Java Compatibility Information                : JIRA version = 6.4, Java Version = 1.8.0_11

Here is database settings (from JIRA logs):

Database configuration OK

___ Database Configuration _________________

     Loading entityengine.xml from                 : file:/opt/atlassian/jira/atlassian-jira/WEB-INF/classes/entityengine.xml
     Entity model field type name                  : mysql
     Entity model schema name                      : 
     Database Version                              : MySQL - 5.5.41-0+wheezy1
     Database Driver                               : MySQL Connector Java - mysql-connector-java-5.1.35 ( Revision: 5fb9c5849535c13917c2cf9baaece6ef9693ef27 )
     Database URL                                  : jdbc:mysql://localhost:3306/jira?useUnicode=true&characterEncoding=UTF8&sessionVariables=storage_engine=InnoDB
     Database JDBC config                          : mysql jdbc:mysql://localhost:3306/jira?useUnicode=true&characterEncoding=UTF8&sessionVariables=storage_engine=InnoDB

2015-04-01 18:13:14,811 localhost-startStop-1 INFO      [atlassian.jira.startup.ClusteringChecklistLauncher] JIRA clustering startup checks completed successfully.
2015-04-01 18:13:14,822 localhost-startStop-1 INFO      [atlassian.jira.startup.JiraStartupLogger]

 

Also I noticed that I have a lot of Java error in JIRA logs, that happens when I start the service JIRA , here is the first one:

2015-04-01 18:13:38,075 ThreadPoolAsyncTaskExecutor::Thread 8 ERROR      [plugin.osgi.factory.OsgiPlugin] Unable to start the plugin container for plugin 'com.atlassian.jira.jira-mail-plugin'
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [bundle://52.0:0/META-INF/spring/spring.xml]; nested exception is java.lang.IllegalStateException: Unable to create Java 1.5 dependent parser: org.springframework.context.annotation.ComponentScanBeanDefinitionParser
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420)
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
	at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:164)
	at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:136)
	at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
	at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269)
	at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247)
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:214)
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:169)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)
	at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalStateException: Unable to create Java 1.5 dependent parser: org.springframework.context.annotation.ComponentScanBeanDefinitionParser
	at org.springframework.context.config.ContextNamespaceHandler.registerJava5DependentParser(ContextNamespaceHandler.java:59)
	at org.springframework.context.config.ContextNamespaceHandler.init(ContextNamespaceHandler.java:43)
	at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.resolve(DefaultNamespaceHandlerResolver.java:129)
	at org.springframework.osgi.extender.internal.support.NamespacePlugins$Plugin.resolve(NamespacePlugins.java:82)
	at org.springframework.osgi.extender.internal.support.NamespacePlugins.doResolve(NamespacePlugins.java:168)  <+2>
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.springframework.osgi.context.support.TrackingUtil$OsgiServiceHandler.invoke(TrackingUtil.java:123)
	at com.sun.proxy.$Proxy508.resolve(Unknown Source)
	at org.springframework.osgi.context.support.DelegatedNamespaceHandlerResolver.resolve(DelegatedNamespaceHandlerResolver.java:56)
	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1292)
	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1287)
	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135)
	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507)
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)
	... 20 more
Caused by: java.lang.ClassFormatError: Method "getReaderContext" in class org/springframework/context/annotation/ComponentScanBeanDefinitionParser has illegal signature "+)Lorg/springframework/beans/factory/xml/XmlReaderContext;"
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(Unknown Source)
	at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1829)
	at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:716)
	at org.apache.felix.framework.ModuleImpl.access$200(ModuleImpl.java:73)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at org.springframework.util.ClassUtils.forName(ClassUtils.java:211)
	at org.springframework.context.config.ContextNamespaceHandler.registerJava5DependentParser(ContextNamespaceHandler.java:55)
	... 37 more

 

Is that useful to figure out what's going on here ?

Thanks you very much for your help. 

Daniel Wester
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 1, 2015

Those are some strange errors. I would suggest dropping in a support request at support.atlassian.com

Edouard Pagnier April 2, 2015

I juste send that to the support as you suggested, let's see what they found ! Thanks

0 votes
Sateesh Chandra March 31, 2015

Hi Edouard, Did you check the logs. Can you provide other details. What is the database being used. What are the database settings. Regards, Sateesh

Suggest an answer

Log in or Sign up to answer