I changed the values to 512 and 1024 respectively.
JVM_MINIMUM_MEMORY="368"
JVM_MAXIMUM_MEMORY="768"
Now JIRA will not start. Complains the heap is small. Changed the values back and still won't start with same error message.
cat /proc/meminfo shows:
MemTotal: 8063248 kB
MemFree: 5456820 kB
Buffers: 622272 kB
Cached: 1517056 kB
SwapCached: 804 kB
Active: 1300020 kB
Inactive: 873112 kB
Active(anon): 33136 kB
Inactive(anon): 668 kB
Active(file): 1266884 kB
Inactive(file): 872444 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 2097148 kB
SwapFree: 2083376 kB
So there is enough RAM. What is going on here?
Executing - ./start-jira.sh -fg and I get:
Server startup logs are located in /opt/atlassian/jira/logs/catalina.out
Using CATALINA_BASE: /opt/atlassian/jira
Using CATALINA_HOME: /opt/atlassian/jira
Using CATALINA_TMPDIR: /opt/atlassian/jira/temp
Using JRE_HOME: /usr/lib64/jvm/java/jre
Using CLASSPATH: /opt/atlassian/jira/bin/bootstrap.jar:/opt/atlassian/jira/bin/tomcat-juli.jar
Using CATALINA_PID: /opt/atlassian/jira/work/catalina.pid
JVMJ9GC017E -Xmx too small, must be at least 1 Mbytes
JVMJ9VM015W Initialization error for library j9gc26(2): Failed to initialize
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
You're allocating the memory in bytes - it needs Megabytes. Try adding "m" to the end of the numbers to tell it you mean Mb
OK, didn't know that. But how did this work before? The standard values did not have this notation. Does that mean that these values are not initially used?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't know where you got those numbers from - I get the "m" on the end when I do a default installation
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maybe I was just blind :-) Anyways thanks for the help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you @Nic Brough -Adaptavist-
These assignments worked:
JVM_MINIMUM_MEMORY="2048m"
JVM_MAXIMUM_MEMORY="4096m"
These did not :
JVM_MINIMUM_MEMORY="2048"
JVM_MAXIMUM_MEMORY="4096"
In file
/opt/atlassian/jira/bin/setenv.sh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.