- Download VisualVM https://visualvm.github.io/download.html
- Make sure you have a JDK installed. https://adoptopenjdk.net/?variant=openjdk8&jvmVariant=hotspot 2.5 When installing make sure to set the JAVA_HOME option to avoid problems. (that is JDK not JRE, if you do not develop java applications you probably don't have it)
- Make sure your game is in the state you want to analyze.
- Run VisualVM.
- Select the process of your game on the left. (for forge this is usually cpw.mods.modlauncher) See image below
- Go to the Sampler tab
- Wait for the button become valid and click CPU
- VisualVM now samples every thread in your game. Pay special attention to:
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[31Oct2021 17:29:52.765] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, Darkere, --version, 1.16.5, --gameDir, ..\..\instances\E6, --assetsDir, ..\..\datastore\assets, --assetIndex, 1.16, --uuid, 4d478bd8b3044b6db682de4def7fd716, --accessToken, ????????, --userType, mojang, --versionType, release, --launchTarget, fmlclient, --fml.forgeVersion, 36.2.8, --fml.mcVersion, 1.16.5, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20210115.111550, --width, 854, --height, 480] | |
[31Oct2021 17:29:52.768] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 8.0.9+86+master.3cf110c starting: java version 1.8.0_242 by AdoptOpenJDK | |
[31Oct2021 17:29:52.775] [main/DEBUG] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Found launch services [minecraft,testharness,fmlclient,fmlserver] | |
[31Oct2021 17:29:52.786] [main/DEBUG] [cpw.mods.modlauncher.NameMappingServiceHandler/MODLAUNCHER]: Found naming services : [] | |
[31Oct2021 17:29:52.829] [main/DEBUG] [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---- Minecraft Crash Report ---- | |
// Quite honestly, I wouldn't worry myself about that. | |
Time: 10/10/21, 12:00 PM | |
Description: Ticking block entity | |
java.lang.NullPointerException: A given capability is null | |
at java.util.Objects.requireNonNull(Objects.java:233) ~[?:?] {} | |
at org.cyclops.cyclopscore.modcompat.capabilities.DefaultCapabilityProvider.getCapability(DefaultCapabilityProvider.java:42) ~[cyclopscore:1.11.9] {re:classloading} | |
at net.minecraftforge.common.capabilities.CapabilityDispatcher.getCapability(CapabilityDispatcher.java:102) ~[forge:?] {re:classloading} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---- Minecraft Crash Report ---- | |
// There are four lights! | |
Time: 2/12/21 9:37 PM | |
Description: Ticking block entity | |
java.lang.ClassCastException: com.simibubi.create.content.schematics.SchematicWorld cannot be cast to net.minecraft.world.server.ServerWorld | |
at com.mowmaster.pedestals.blocks.PedestalBlock.func_196271_a(PedestalBlock.java:573) ~[pedestals:0.8r_hotfix_4] {re:classloading} | |
at net.minecraft.block.AbstractBlock$AbstractBlockState.func_196956_a(AbstractBlock.java:655) ~[?:?] {re:mixin,pl:runtimedistcleaner:A,re:classloading,pl:mixin:APP:immersiveengineering.mixins.json:coremods.AbstractBlockStateMixin,pl:mixin:APP:losttrinkets.mixins.json:AbstractBlockStateMixin,pl:mixin:APP:kubejs-common.mixins.json:BlockStateBaseMixin,pl:mixin:A,pl:runtimedistcleaner:A} | |
at net.minecraft.world.gen.feature.template.Template.lambda$func_222857_a$4(Template.java:353) ~[?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---- Minecraft Crash Report ---- | |
// I let you down. Sorry :( | |
Time: 12/21/20 11:49 PM | |
Description: Ticking entity | |
java.nio.file.InvalidPathException: Illegal char <:> at index 248: a3ab3fddad0d409382e12f96f49e363f-TextComponent{text='ManiacRobert', siblings=[], style=Style{ color=null, bold=null, italic=null, underlined=null, strikethrough=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null, font=minecraft:default}}_drone.json | |
at sun.nio.fs.WindowsPathParser.normalize(Unknown Source) ~[?:1.8.0_201] {} | |
at sun.nio.fs.WindowsPathParser.parse(Unknown Source) ~[?:1.8.0_201] {} | |
at sun.nio.fs.WindowsPathParser.parse(Unknown Source) ~[?:1.8.0_201] {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[09Sep2020 22:21:48.321] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, Darkere, --version, 1.16.2-forge-33.0.58, --gameDir, C:\Minecraft\1.16.2 Forge, --assetsDir, C:\Users\Dark-\AppData\Roaming\.minecraft\assets, --assetIndex, 1.16, --uuid, 4d478bd8b3044b6db682de4def7fd716, --accessToken, ????????, --userType, mojang, --versionType, release, --launchTarget, fmlclient, --fml.forgeVersion, 33.0.58, --fml.mcVersion, 1.16.2, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20200812.004259] | |
[09Sep2020 22:21:48.324] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 7.0.1+78+master.e9771d8 starting: java version 1.8.0_51 by Oracle Corporation | |
[09Sep2020 22:21:48.334] [main/DEBUG] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Found launch services [minecraft,testharness,fmlclient,fmlserver] | |
[09Sep2020 22:21:48.343] [main/DEBUG] [cpw.mods.modlauncher.NameMappingServiceHandler/MODLAUNCHER]: Found naming services : [] | |
[09Sep2020 22:2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[09Sep2020 22:17:17.218] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, Darkere, --version, 1.16.2-forge-33.0.58, --gameDir, C:\Minecraft\1.16.2 Forge, --assetsDir, C:\Users\Dark-\AppData\Roaming\.minecraft\assets, --assetIndex, 1.16, --uuid, 4d478bd8b3044b6db682de4def7fd716, --accessToken, ????????, --userType, mojang, --versionType, release, --launchTarget, fmlclient, --fml.forgeVersion, 33.0.58, --fml.mcVersion, 1.16.2, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20200812.004259] | |
[09Sep2020 22:17:17.220] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 7.0.1+78+master.e9771d8 starting: java version 1.8.0_51 by Oracle Corporation | |
[09Sep2020 22:17:17.230] [main/DEBUG] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Found launch services [minecraft,testharness,fmlclient,fmlserver] | |
[09Sep2020 22:17:17.238] [main/DEBUG] [cpw.mods.modlauncher.NameMappingServiceHandler/MODLAUNCHER]: Found naming services : [] | |
[09Sep2020 22:1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[21Aug2020 01:01:52.824] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--width, 854, --height, 480, --username, Darkere, --version, 1.16.1, --gameDir, C:\_gdl\instances\E6, --assetsDir, C:\_gdl\datastore\assets, --assetIndex, 1.16, --uuid, 4d478bd8b3044b6db682de4def7fd716, --accessToken, ????????, --userType, mojang, --versionType, release, --launchTarget, fmlclient, --fml.forgeVersion, 32.0.108, --fml.mcVersion, 1.16.1, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20200625.160719] | |
[21Aug2020 01:01:52.827] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 6.1.1+74+master.966c698 starting: java version 1.8.0_242 by AdoptOpenJDK | |
[21Aug2020 01:01:52.837] [main/DEBUG] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Found launch services [minecraft,testharness,fmlclient,fmlserver] | |
[21Aug2020 01:01:52.845] [main/DEBUG] [cpw.mods.modlauncher.NameMappingServiceHandler/MODLAUNCHER]: Found naming services : [] | |
[21Aug2020 01:01:52.881] [main/DE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[21Aug2020 01:01:52.824] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--width, 854, --height, 480, --username, Darkere, --version, 1.16.1, --gameDir, C:\_gdl\instances\E6, --assetsDir, C:\_gdl\datastore\assets, --assetIndex, 1.16, --uuid, 4d478bd8b3044b6db682de4def7fd716, --accessToken, ????????, --userType, mojang, --versionType, release, --launchTarget, fmlclient, --fml.forgeVersion, 32.0.108, --fml.mcVersion, 1.16.1, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20200625.160719] | |
[21Aug2020 01:01:52.827] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 6.1.1+74+master.966c698 starting: java version 1.8.0_242 by AdoptOpenJDK | |
[21Aug2020 01:01:53.150] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust | |
[21Aug2020 01:01:53.186] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8 Source=file:/C:/_gdl/datastore/libraries/org/spongepowered/mixin/0.8/mixin-0.8.jar Service=M |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[20Aug2020 20:08:56.487] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmluserdevclient, --fml.mcpVersion, 20200812.004259, --fml.mcVersion, 1.16.2, --fml.forgeGroup, net.minecraftforge, --fml.forgeVersion, 33.0.5, --version, MOD_DEV, --assetIndex, 1.16, --assetsDir, C:\Users\Dark-\.gradle\caches\forge_gradle\assets, --username, Dev, --accessToken, ❄❄❄❄❄❄❄❄, --userProperties, {}] | |
[20Aug2020 20:08:56.491] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 6.1.1+74+master.966c698 starting: java version 1.8.0_265 by AdoptOpenJDK | |
[20Aug2020 20:08:56.505] [main/DEBUG] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Found launch services [minecraft,fmldevdata,fmldevclient,fmldevserver,fmluserdevserver,testharness,fmluserdevdata,fmlclient,fmluserdevclient,fmlserver] | |
[20Aug2020 20:08:56.518] [main/DEBUG] [cpw.mods.modlauncher.NameMappingServiceHandler/MODLAUNCHER]: Found naming services : [srgtomcp] | |
[20Aug2020 20:08:56.555] |
NewerOlder