CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

How to increase jvm heap?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By LuckyTran

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 8, 2020, 18:06
Default How to increase jvm heap?
  #1
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,677
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
I have the infamous java.lang.OutOfMemoryError when trying to export a plot containing a lot of monitors as a .csv.


Anybody know how to send the -Xmx option to the jvm when the Star server launches?
LuckyTran is offline   Reply With Quote

Old   April 8, 2020, 20:10
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,677
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Solved.

pass -jvmargs -Xmx[#] as a command line argument when you launch Star-CCM.

Also I learned Star abuses LD_PRELOAD and uses -Xmx768m ( max heap space of 768 MB). It ignores the system settings... which for my machine was already configured at 20 GB. =(
bluebase likes this.
LuckyTran is offline   Reply With Quote

Old   November 25, 2021, 07:29
Default
  #3
Member
 
Will Crawford-Jones
Join Date: Jan 2021
Posts: 43
Rep Power: 5
wcj1n18 is on a distinguished road
Hello,

How would I do this when submitting in batch? I tried simply adding
" -jvmargs -Xmx16G " to my batch script in the final line...

" starccm+ -jvmargs -Xmx16G -np $SLURM_NTASKS -machinefile $NODEFILE -load FILENAME.sim -batch > OUTPUT "

I have a large number of monitors like you and I keep getting the OOM error. The job consist of 80 million cells which should work out to require 200GB of RAM. I have tried up to 7 nodes each of which have usable RAM of 162GB. This works out as as over 1 TB of RAM. Hence, I don't think that this is the issue and think it's heap space.

Any ideas?

Thanks

Will
wcj1n18 is offline   Reply With Quote

Old   November 26, 2021, 09:38
Default
  #4
Member
 
Will Crawford-Jones
Join Date: Jan 2021
Posts: 43
Rep Power: 5
wcj1n18 is on a distinguished road
OK, i've worked out that this was because I was initialising with pressure and velocity data taken from a steady simulation with the same mesh size (80 million cells). The CSV file was 2.5 GB and Star-CCM+ apparently couldn't handle it. I dont know the best way to initalise...
wcj1n18 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Temperature increase causes divergence in a chemical reaction system nfurkan FLUENT 0 June 27, 2018 07:22
Increase in flow rate decrease in Outlet pressure. trovilb1 System Analysis 1 December 5, 2017 07:22
Extremely Small Constant Increase of Heat Transfer Coefficient With Concentration Shomaz ul Haq CFX 6 July 9, 2017 08:06
Unexpected species increase in discontinuous phase CeesH Fluent Multiphase 0 August 6, 2014 05:41
How can I increase Heat Transfer at Domain Interf? B.Simon CFX 3 October 28, 2008 18:53


All times are GMT -4. The time now is 17:00.