I am using ubuntu 14.04 LTS
Having java 7 and 8 installed from oracle.
Using alternative and working with java 7 but one of my projects use java 8.
gradle build --version
returns that it works with java 7 -> since most of my projects use this version, i don't want to change this.
Solution: creating in the java 8 project, in the root directory, file named gradle.properties
inside it for example in my case :
org.gradle.java.home=/usr/lib/jvm/java-8-oracle/
this way, when you will do gradle build in this project, gradle will use this version instead of the one defined for him.
Hoped it helped,
Dor
Showing posts with label jvm. Show all posts
Showing posts with label jvm. Show all posts
Jun 19, 2014
Nov 23, 2010
Uncaught exception: java.lang.OutOfMemoryError: PermGen space
Hi,
Cause:
Memory leak or imperfect memory management of one of your modules.
Solutions:
Cause:
Memory leak or imperfect memory management of one of your modules.
Solutions:
- Restart what you have done all over, if it was a server for example. This may happen when one of your modules failed to be removed from memory.
- Increasing your heap memory buy running with
read heap dump
I suggest using eclipse MAT plug in, which can be found here.
After installing the plug in, use file->Open and open the heap.bin you have created (jmap for example).
It will take a while, depends on your computer hardware, but in the end, you would be able to analyaze this memory dump.
Hopefully it helps,
DOr
After installing the plug in, use file->Open and open the heap.bin you have created (jmap for example).
It will take a while, depends on your computer hardware, but in the end, you would be able to analyaze this memory dump.
Hopefully it helps,
DOr
Subscribe to:
Posts (Atom)