Minecraft keeps crashing on startup?

Br
15

I have a problem every time I start Minecraft it keeps crashing. Any ideas? The crash report:

an

Did you seem to be trying to allocate more RAM?

Br

I have 8GB of ram allocated at the moment

an

Oops, ok, that's okay.

And you sure have 64-bit Java?

And your PC has 16 GB of RAM or more? (If you only have 8, then of course you can't assign all 8!)

Br

"Java HotSpot (TM) 64-Bit Server VM (build 25.261-b12, mixed mode)" Should be 64x bit if I'm not completely lost xd. My PC has 16GB RAM and it worked perfectly with 8GB RAM for 4+ months until yesterday. I really don't know what the mistake could be

re

Try assigning less RAM to Minecraft. The crash report states that Windows has too little physical RAM to allocate 8GB to Minecraft.

Other possible solutions:

Quote from the crash report:
# Possible solutions:
# Reduce memory load on the system
# Increase physical memory or swap space
# Check if swap backing store is full
# Use 64 bit Java on a 64 bit OS
# Decrease Java heap size (-Xmx / -Xms)
# Decrease number of Java threads
# Decrease Java thread stack sizes (-Xss)
# Set larger code cache with -XX: ReservedCodeCacheSize =

an

Where do you read that Windows has too little RAM xD

re

Quote line 5: # The system is out of physical RAM or swap space

an

Oh true xD

Br

I deactivated the swap file a few days ago. Could it be because of that?

an

Yep, that's it.

You shouldn't deactivate it. Quote:

The swap file should never be deleted. Even if there's a high memory of 16 GB RAM or more, it can't be dispensed with. Because some programs under Windows 10 use the swap file by default. If this is deactivated or even deleted, these apps may no longer work correctly and fatal errors could occur.

Br

I reactivated the swap file and restarted my PC. It's working again.

an

Fits.

Mi

Try reinstalling Java, download link: https://javadl.oracle.com/webapps/download/AutoDL?xd_co_f=ZWI2NTdkOWEtN2FkYS00YmU2LWIwMWMtNjE1YzBjMGI2NDg1&BundleId=242060_3d5a2bb8f8d4428bbe94aed7ec7ae784

See if the error is still there afterwards

an

He already has the solution.

He had deactivated the Windows swap file. Whichever way he got the nonsense.

Problem: Programs like Java use the default. Hence the crash.

Mi

Ahh okay