I'm using sbt for a liftweb development, but it's using 1.2 GB of ram, and sometimes it throws java.lang.OutOfMemoryError: PermGen space, is it normal that sbt uses this amount of ram?
You can
export SBT_OPTS="-XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=512M"
Wrote about it in http://samwize.com/2012/10/18/scala-tutorial-part-ii/.
Related
I keep getting java.lang.OutOfMemoryError Java heap space in MyEclipse JBOSS. I tried increasing the memory allocated to JBoss.
But I am still getting the error. Am I doing something wrong or do I need to add more memory?
I am using MyEclipse for Spring version 10. Any help would be appreciated.
I have downloaded the Cordapp example provided in the Corda website. I follow all the steps (to run it from the console) in
https://docs.corda.net/tutorial-cordapp.html
without any problem until "Running the example CorDapp". Here i get to errors one way or another.
First, when running
workflows-kotlin/build/nodes/runnodes
one or more of the nodes would not start. I was using a virtual machine with 2 cores and 4GB of RAM. Eventually, i noticed it seemed to be an issue with the RAM, so i changed the VM condig to 4 cpus and 10 GB of RAM.
Now, i can run
workflows-kotlin/build/nodes/runnodes
and get all 4 nodes working but, as soon as I run the following instruction
/gradlew runPartyXServer
Where X=[A,B,C] for each of the possible nodes, after 20-30 seconds as much, the machine repently slows down and aborts.
The VM has Fedora 30, 4 cores and 10GB of RAM. It is empty except for what i downloaded for the tutorial. I cannot believe those are not enough resources to run the tutorial, Am i wrong? Do i need more? may it be another thing?
Any help is welcome.
== Solved ==
The issue were the resources. I jumped to 8 cores and 32GB and it ran. I will try at some point with 16GB. In any case, the problem, from my point of view, is that having those large hardware requirements, the tutorial should include a section describing the minimum setup needed to run it.
From the given information, I believe you had ran into a Memory issue.
According to our documentation, Corda has a suggested minimal requirement of 1GB of Heap and 2-3GB of Host RAM per node.
https://docs.corda.net/docs/corda-enterprise/4.4/node/sizing-and-performance.html#sizing
I would suggest either reduce the number of nodes hosted on a single machine or expand your RAM size of the VM
I am running Chrome through rsDriver() from RSelenium in parallel and when I start my script each R-session takes about 300mb of RAM.
After a while, each session starts increasing the RAM and eventually crashes because of RAM failure.
I stopped the script when ram is 98% full and used the following code:
gc()
gc(rsdriver)
It does not help. I checked the environment size with
object_size(ls())
It returns that the environment is less than 1mb. The script I have running fetches data, but uploads it to a database. So it should not store anything.
How can I identify what is occupying this ram and fix it?
Some additional info:
I have 32gb of ram, should be enough.
I am aware of Docker, but irrelevant for this question
I m currently using adobe flash builder 4.6 n there is java heap space error. i cleaned my project every time but it's not working is there any permanent solution for this issue, plz help as soon as possible.
java heap error comes for several reason like a build a project which has too much library in it build path for this type of project you have to build individual library and then build main Project.
You can increase a heap memory flash builder 4.6(FB 4.6) manually. 1024MB is a maximum limit of heap memory allocation. you can't allocate more memory than 1024MB.
go to C:\Program Files\Adobe\Adobe Flash Builder 4.6 and open FlashBuilder.ini file and update the line -Xmx512m to -Xmx1024m. By default 512MB heap memory allocate to heap. but you can increase it manually.
warning
if you try to increase heap memory more than 1024 then your FB 4.6 not open.
if this not solves your problem then put a log file
When I build my application statically, it comes out to just over 5Mb, so it's a small, simple program. However, any system that has under 3Gb of ram can't run the program, saying there's not enough memory. There is nothing very memory intensive in the program, and I did nothing to allocate memory specifically. Any thoughts on whats causing this?
I believe that less the 1Mb built code can easilly fill the 10GB memory. Make sure that your code does not use redundant memory.
There was a problem with the static build. I first got it to work by exporting from the visual studio plugin, and then I rebuilt the SDK and program again, and everything worked fine from QT creator.