-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Affects Version/s: None
-
Component/s: Performance
-
Severity 2 - Major
Summary
When no hibernate.c3p0.max_size is defined in <bamboo-home>/bamboo.cfg.xml (e.g. if a Tomcat JDBC Datasource is being used instead) then the Bamboo plan cache will be initialized with only a single thread. This can cause significant delays in start-up of Bamboo.
Steps to Reproduce
- Configure a Tomcat JDBC Datasource
- Remove hibernate.c3p0.max_size from <bamboo-home>/bamboo.cfg.xml
- Start Bamboo
Expected Results
Plan cache is initialized thread count equal to available processors.
Actual Results
Plan cache is initialized with 1 thread:
2018-04-22 13:07:10,053 INFO [localhost-startStop-1] [ImmutablePlanCacheServiceImpl] Initialising plan cache with 1 threads.
Workaround
- Stop Bambo
- Edit your <bamboo-install>/bin/setenv.sh (or equivalent) and add the below. Set the value to the amount of CPU processors available (aka the result of nproc --all)
: ${JVM_SUPPORT_RECOMMENDED_ARGS:="-Datlassian.bamboo.plan.cache.loading.threads=8"} - Start Bamboo
- derived from
-
BAM-19855 Bamboo full reindex thread is initialized with only 1 thread when hibernate.c3p0.max_size is undefined
-
- Closed
-