disable java perf counters as they shit in our /tmp dir until it is full, and this upsets oracle

This commit is contained in:
DarthArgus
2016-06-21 19:53:08 +00:00
parent 41cd9ff9b3
commit 4f1bcb225a
@@ -1167,8 +1167,9 @@ void JavaLibrary::initializeJavaThread()
{
// java 1.8 and higher uses metaspace...which is apparently unlimited by default
// and turn off perf counters as they crap up the tmp dir
#if defined(JNI_VERSION_1_8) || defined(JNI_VERSION_1_9)
tempOption.optionString = "-XX:MetaspaceSize=64m";
tempOption.optionString = "-XX:MetaspaceSize=64m --XX:-UsePerfData";
options.push_back(tempOption);
#endif