Hi,
We have a problem with our Gitblit server this morning reporting out of heap space errors. It seems to be happening after a large amount of branches were added to a repo (I'm not entirely sure if the two are related)
I've changed the startup options and given it a large amount of memory:
/usr/bin/java -Xms1g -Xmx5g -jar gitblit.jar --baseFolder data --dailyLogFile
After I did this, it spent a lot of time caching new commits then seemed to start, however, it's reporting heap space problems:
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.moxie.MxLauncher.main(MxLauncher.java:129)
Caused by: java.lang.OutOfMemoryError: Java heap space
How much heap space should I give it? 5g seems like quite a lot.
many thanks,
Zoltan Galgavolgyi