bflad / chef-stash

Chef Cookbook for Atlassian Stash
Other
37 stars 42 forks source link

Stash Crashes Due to java.lang.OutOfMemoryError PermGen Space Error #84

Closed linc01n closed 9 years ago

linc01n commented 9 years ago

I have this issue twice after I upgraded my Stash to 3.8.0 4 days ago. The solution is to increase

default['stash']['jvm']['maximum_permgen'] = '256m'

I am still testing how many ram should I increase

From Stash Knowledge base:

If you're experiencing this issue after upgrading to Stash 3.8+ and are using Java 7, it's likely that the setenv.sh (setenv.bat for Windows) was copied from a previous version.

screen shot 2015-04-24 at 11 43 32 am

source: https://confluence.atlassian.com/display/STASHKB/Stash+Crashes+Due+to+java.lang.OutOfMemoryError+PermGen+Space+Error

bflad commented 9 years ago

Seems reasonable to me to change the settings based on the newer default configuration file.

patcon commented 9 years ago

Any objection to adding logic to the setenv.sh file to create a template correctly when 3.8+? Using the 3.8-style template from that link on v3.10 solved the crash

mrjcleaver commented 9 years ago

Sounds good to me :)