C:\Windows\SysWOW64\java -Xmx1000m -cp pocminer.jar;lib/*;lib/akka/*;lib/jetty/* pocminer.POCMiner generate XXXXXXXXXXXXXXXXX 1 4000000 8191 16
(Assuming its a 8-core 16 thread cpu)
When i execute with these settings i get the below error.
Uncaught error from thread [default-akka.actor.default-dispatcher-4] shutting do
wn JVM since 'akka.jvm-exit-on-fatal-error' is enabled for ActorSystem[default]
java.lang.OutOfMemoryError: Java heap space
at pocminer.GenerateSupr.init(GenerateSupr.java:61)
at pocminer.GenerateSupr.preStart(GenerateSupr.java:55)
at akka.actor.Actor$class.aroundPreStart(Actor.scala:470)
at akka.actor.UntypedActor.aroundPreStart(UntypedActor.scala:97)
at akka.actor.ActorCell.create(ActorCell.scala:580)
at akka.actor.ActorCell.invokeAll$1(ActorCell.scala:456)
at akka.actor.ActorCell.systemInvoke(ActorCell.scala:478)
at akka.dispatch.Mailbox.processAllSystemMessages(Mailbox.scala:263)
at akka.dispatch.Mailbox.run(Mailbox.scala:219)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(Abst
ractDispatcher.scala:393)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool
.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:19
79)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThre
ad.java:107)
Has anyone encountered the above?
Yeah, change -Xms1000m to -Xms4000m to allocate more memory.
Did as suggested and now get the below error.
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Thanks for your help
How much free memory do you have in your machine? 4000m will require nearly 4GB of free RAM to allocate properly. If you don't have sufficient memory for this, just change '8191' to '1024'.
Thats the thing i have like 12GB free!! I have noticed in Task Manager that the process is the 32bit version. Should it not be using x64 so it can address the extra memory?
Do you have a 64-bit version of Java installed? If not, just reduce 4000m to 2000m and then reduce 8191 to 4096, or 2048.
Yes i just re-installed both. I still get errors with 2000m only 1000m works.
If by any means possible use java x64 and run_generate like this:
"C:\Program Files\Java\jre7\bin\java.exe" -Xmx8000m -cp pocminer.jar;lib/*;lib/akka/*;lib/jetty/* pocminer.POCMiner generate your_addres start_plot number_of_plots 8191 6
(Yes, the double quotes should also be in there)! Also set your number_of_cores to max-2