Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Pages: 1 [2]

Author Topic: Java Memory Allocation Question - 8 gigs not enough?!  (Read 12064 times)

wmss

  • Ensign
  • *
  • Posts: 8
    • View Profile
Re: Java Memory Allocation Question - 8 gigs not enough?!
« Reply #15 on: July 17, 2017, 05:25:44 PM »

I went to Nvidia control panel and selected the starsector exe file and forced it to run from my graphics card but when the game runs,I don't feel any heat coming from the back where the card is. Is there another way to force the card?

Plus it looks like I'm using just under 5gb of java ram when all mods are selected.

Your card may not get hot. Mine doesn't. Starsector just doesn't use much GPU power. If you really want to know if your card's being used or not, I think there's a GPU usage indicator you can enable on Nvidia cards or you can try using MSI Afterburner.
Logged

Midnight Kitsune

  • Admiral
  • *****
  • Posts: 2847
  • Your Friendly Forum Friend
    • View Profile
Re: Java Memory Allocation Question - 8 gigs not enough?!
« Reply #16 on: July 17, 2017, 06:29:03 PM »

I went to Nvidia control panel and selected the starsector exe file and forced it to run from my graphics card but when the game runs,I don't feel any heat coming from the back where the card is. Is there another way to force the card?

Plus it looks like I'm using just under 5gb of java ram when all mods are selected.

Your card may not get hot. Mine doesn't. Starsector just doesn't use much GPU power. If you really want to know if your card's being used or not, I think there's a GPU usage indicator you can enable on Nvidia cards or you can try using MSI Afterburner.
You don't set the SS.exe (this is just the launcher) but instead you set the specific java exe that SS uses (Located here: Fractal Softworks\Starsector\jre\bin\java.exe )
Logged
Help out MesoTroniK, a modder in need

2021 is 2020 won
2022 is 2020 too

Kyuss11

  • Lieutenant
  • **
  • Posts: 71
    • View Profile
Re: Java Memory Allocation Question - 8 gigs not enough?!
« Reply #17 on: July 17, 2017, 06:54:40 PM »

Ah.. That did the trick and now my java ram went down 2,046. So I'm assuming that my video card is taking up the other 2gigs and now should really help out with performance. I plan on playing tonight for awhile at work,so what's the best way to show errors? Should I just delete the starsector log and then if it crashes post the last few lines where it crashed?

Thanks by the way.
Logged

Midnight Kitsune

  • Admiral
  • *****
  • Posts: 2847
  • Your Friendly Forum Friend
    • View Profile
Re: Java Memory Allocation Question - 8 gigs not enough?!
« Reply #18 on: July 17, 2017, 07:22:46 PM »

Yeah, deleting the log so there is only one session in it helps. As do listing the last hundred lines or so of it after it crashes
Logged
Help out MesoTroniK, a modder in need

2021 is 2020 won
2022 is 2020 too

Kyuss11

  • Lieutenant
  • **
  • Posts: 71
    • View Profile
Re: Java Memory Allocation Question - 8 gigs not enough?!
« Reply #19 on: July 18, 2017, 07:29:30 AM »

Ok,so I managed to play for about 3 hours before getting a java heap warning of 54% full.The task manager said I was using 2,378kb of ram,so I', assuming it's getting a 4gb limit but I allocated 10 gigs in the vprams file.
I didn't get a crash but my save hung up with the music cutting in and out as the bar would move slowly over to the finish area. But then stopped and I had to close the program.The last few hundred lines just show saving with no error.but here it is.
5065713 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5065730 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5065746 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5065763 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5065780 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5065796 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5065813 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5065830 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5065846 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5065863 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5065880 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5065896 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5065913 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5065930 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5065946 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5065963 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5065980 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5065996 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5066013 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5066030 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5066046 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5066063 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5066080 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5066096 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5066113 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5066130 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5066146 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5066163 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5066180 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5066196 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5066213 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5066230 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5066246 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5066263 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5066280 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5066296 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5066313 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5066330 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5066346 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5066363 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5066380 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5066396 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5066413 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5066430 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5066446 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5066463 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5066523 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5066546 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5066558 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5066572 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5066583 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
5066596 [Thread-15] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.0
Logged

Dark.Revenant

  • Admiral
  • *****
  • Posts: 2806
    • View Profile
    • Sc2Mafia
Re: Java Memory Allocation Question - 8 gigs not enough?!
« Reply #20 on: July 18, 2017, 09:50:29 AM »

The heap warning is a heuristic and isn't fully accurate for everyone.  10GB is an enormous allocation; you really don't need that much.  6 GB is usually fine.

The warning in-game doesn't really matter.  That frozen progress bar is actually unrelated to allocation, and is some kind of bug in the game that causes the saving system to crap out.  Allocating more memory won't help you there.
Logged

Kyuss11

  • Lieutenant
  • **
  • Posts: 71
    • View Profile
Re: Java Memory Allocation Question - 8 gigs not enough?!
« Reply #21 on: July 20, 2017, 07:06:35 AM »

Everything has been playing well, I reduced my faction s to about 8 with Nexerelin,Dynasector and a few others.  However I did get one crash log and not sure if it's a mod or just a random crash. The crash happened after I won against the Luddic Path and went to click recover ship and then it crashed.

6727574 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.RuntimeException: Ship hull spec [hammerhead_d_default_D] not found!
java.lang.RuntimeException: Ship hull spec [hammerhead_d_default_D] not found!
   at com.fs.starfarer.loading.F.super(Unknown Source)
   at com.fs.starfarer.loading.SpecStore.o00000(Unknown Source)
   at com.fs.starfarer.loading.SpecStore.o00000(Unknown Source)
   at com.fs.starfarer.settings.StarfarerSettings$1.getHullSpec(Unknown Source)
   at com.fs.starfarer.api.impl.campaign.DModManager.setDHull(DModManager.java:37)
   at com.fs.starfarer.api.impl.campaign.FleetEncounterContext.getRecoverableShips(FleetEncounterContext.java:1372)
   at com.fs.starfarer.api.impl.campaign.FleetInteractionDialogPluginImpl.winningPath(FleetInteractionDialogPluginImpl.java:1698)
   at exerelin.campaign.NexFleetInteractionDialogPluginImpl.winningPath(NexFleetInteractionDialogPluginImpl.java:269)
   at com.fs.starfarer.api.impl.campaign.FleetInteractionDialogPluginImpl.goToEncount erEndPath(FleetInteractionDialogPluginImpl.java:1526)
   at com.fs.starfarer.api.impl.campaign.FleetInteractionDialogPluginImpl.optionSelec ted(FleetInteractionDialogPluginImpl.java:1282)
   at com.fs.starfarer.ui.newui.newsuper$1.o00000(Unknown Source)
   at com.fs.starfarer.ui.newui.A.actionPerformed(Unknown Source)
   at com.fs.starfarer.ui.j.super(Unknown Source)
   at com.fs.starfarer.ui.I.processInput(Unknown Source)
   at com.fs.starfarer.ui.V.o00000(Unknown Source)
   at com.fs.starfarer.BaseGameState.traverse(Unknown Source)
   at com.fs.state.AppDriver.begin(Unknown Source)
   at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
6727589 [Thread-10] INFO  sound.oo0O  - Creating streaming player for music with id [faction_tritach_encounter_02_hostile.ogg]
6727589 [Thread-10] INFO  sound.OooO  - Playing music with id [faction_tritach_encounter_02_hostile.ogg]
Logged

Midnight Kitsune

  • Admiral
  • *****
  • Posts: 2847
  • Your Friendly Forum Friend
    • View Profile
Re: Java Memory Allocation Question - 8 gigs not enough?!
« Reply #22 on: July 20, 2017, 07:37:08 PM »

Have you updated any mods recently?
Also, what is your exact mod list
Logged
Help out MesoTroniK, a modder in need

2021 is 2020 won
2022 is 2020 too

Kyuss11

  • Lieutenant
  • **
  • Posts: 71
    • View Profile
Re: Java Memory Allocation Question - 8 gigs not enough?!
« Reply #23 on: July 21, 2017, 03:48:58 PM »

Yes all my mods are up to date.
All the Starsector Fx mods
Dynasector 1.3.2
Autosave 1.0f
Blackrock Drive Yards 0.9.0
Combat Chatter 1.7.2
Common Radar 2.4c
Console Commands 3.0 wip 4
Dassault-Mikoyan Engineering 0.9.5f
Diable Avionics 1.85
LazyLib 2.2
Leading Pip 1.8.1
Metelson_Industries A3.00
Nexerelin 0.8.1c
Omnifactory 2.2.3
Portrait Pack v1.2.3
Save Transfer 1.11.3
Ship/Weapon Pack 1.3.0
Simulator Overhaul 1.4
The Knight Templar 0.9.8c
Tore Up Plenty 0.8.1
Upgraded Rotary Weapons 1.31
Version Checker 1.7c
ZZ Audio Plus 1.1.0
ZZ GraphicsLib 1.2.1


 I got a error again when I tried to recover said Hammerhead D which is weird because it's been restored and longer has d-mods on it. I'm thinking maybe Tore Up Plenty mod which overhauls vanilla ships into different variations. It seems that maybe I might of added a faction or 2 and then Sync Factions command and maybe now this Hammerhead does not have a file to recover when I try and recover ship from won battle. The only thing I could do is show pictures to you guys and hopefully identify the mod hull Hammerhead and see if there is a bug with said name or just delete the Hammerheads from my fleet and get new ones.


direct link to image

As you can see the first pic says Hammerhead D but there are no D mods left on it. The second Hammerhead in my fleet is the second picture and looks the same but the description is right.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24125
    • View Profile
Re: Java Memory Allocation Question - 8 gigs not enough?!
« Reply #24 on: July 21, 2017, 04:29:55 PM »

IIRC the "hammerhead_d_default_D" issue is resolved by doing a clean install - manually deleting everything (after saving off the mods/saves folder etc) and reinstalling. I'm not sure what the root cause is (possibly the installer failing to clean things up properly for Windows reasons) but basically the install is corrupted somehow.

Also, if your save is from 0.8a originally, rather than 0.8.1a, that *may* be a factor - not 100% sure here, was a while since the last time this came up.
Logged

Kyuss11

  • Lieutenant
  • **
  • Posts: 71
    • View Profile
Re: Java Memory Allocation Question - 8 gigs not enough?!
« Reply #25 on: July 21, 2017, 05:56:18 PM »

I never did a delete of 0.8a to 0.8.1a so that could be it. So if I delete my star sector and reinstall it,do I have to reconfig my vprams and java stuff? Also can I just move my mods folder back over?
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24125
    • View Profile
Re: Java Memory Allocation Question - 8 gigs not enough?!
« Reply #26 on: July 21, 2017, 07:31:54 PM »

So if I delete my star sector and reinstall it,do I have to reconfig my vprams and java stuff?

Yep. Well, you could save off vmparams; as far as java, 0.8.1a comes with the right version of java right off the bat so you don't need to mess with that at all.

Also can I just move my mods folder back over?

Yeah, and don't forget the saves/screenshots as well :)
Logged

Botaragno

  • Ensign
  • *
  • Posts: 37
    • View Profile
Re: Java Memory Allocation Question - 8 gigs not enough?!
« Reply #27 on: July 22, 2017, 05:16:51 AM »

I was getting heap notifications, and then it bonked out my save after a freeze on the "backing up" ticker.

What do I do now?
Logged
Some day the Conquest will be a viable capital..... some day....

Squish Cat

  • Ensign
  • *
  • Posts: 34
    • View Profile
Re: Java Memory Allocation Question - 8 gigs not enough?!
« Reply #28 on: July 22, 2017, 08:36:47 AM »

IIRC the "hammerhead_d_default_D" issue is resolved by doing a clean install - manually deleting everything (after saving off the mods/saves folder etc) and reinstalling. I'm not sure what the root cause is (possibly the installer failing to clean things up properly for Windows reasons) but basically the install is corrupted somehow.

Also, if your save is from 0.8a originally, rather than 0.8.1a, that *may* be a factor - not 100% sure here, was a while since the last time this came up.

This could potentially be related to an issue I've run into several times.  Or maybe its the same issue.  I completely deleted the Starsector folder from my previous install before installing 8.1a.  But this still happens.

Problem is there are times time where I've recovered ships I've lost in a fight (I was piloting them) with zero D-mods on them.  They're recoverable as undamaged ships.  It even says "No lasting damage." when you hover over the recoverable ship in the recovery menu.  They remain a (D) ship but without the D-mods when you recover them, though.  I can't restore them since there aren't actually any D-mods on them.  However, if I end up losing the ship again and it gets recovered with a D-mod on it, I can restore it and it goes back to being a normal ship without the (D) designation at that point.  Functionally, the (D) ships work fine, they just have the messed up looking hull until they're able to finally get restored using the method described previously.  This happens with any ship, not just hammerheads.

Screenshot in spoiler.  This is one of the ships where this recently happened, an Afflictor.  I've been waiting to have it blow up again so I can fix it.  Provided it ends up recoverable that is.

Spoiler

[close]

EDIT: I forgot to mention that I do also have Recover Operations skill maxed out.  The one where recovered ships have fewer D-hull mods.
« Last Edit: July 22, 2017, 10:03:25 PM by Squish Cat »
Logged

Midnight Kitsune

  • Admiral
  • *****
  • Posts: 2847
  • Your Friendly Forum Friend
    • View Profile
Re: Java Memory Allocation Question - 8 gigs not enough?!
« Reply #29 on: July 22, 2017, 04:02:48 PM »

I was getting heap notifications, and then it bonked out my save after a freeze on the "backing up" ticker.

What do I do now?
There is a backup save in the statsector/ saves folder. Delete the files that don't have the .bak extension then remove said extension from the other files. BAM, you now have your previous save
Logged
Help out MesoTroniK, a modder in need

2021 is 2020 won
2022 is 2020 too
Pages: 1 [2]