Thread: [Kronos] Error intellij

Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11  
    Registered Member
    Mister Maggot's Avatar
    Join Date
    Dec 2008
    Posts
    7,227
    Thanks given
    3,283
    Thanks received
    2,875
    Rep Power
    5000
    Quote Originally Posted by OSRS. View Post
    ...
    ... C:\Program Files (x86)\Java\jdk1.8.0_281\bin\java.exe ...
    ...
    -----------------------
    Invalid maximum heap size: -Xmx4096m
    The specified size exceeds the maximum representable size.
    ...
    See that Xmx4096m flag? You're telling the Java virtual machine it can use up to 4GB of RAM for the heap, which is essentially the maximum size of the "working pool" of RAM it's allowed to use. This wouldn't be an issue on a 64 bit installation, but since you're running a 32 bit copy of Java (notice the x86 in the Program Files directory? that's Microsoft's tell-tale sign you've installed a 32 bit application on a 64 bit operating system) the virtual machine itself cannot simply address 2^32+1 bytes of RAM. When it talks to the CPU and says "hey get me memory at this address", your address range is from 0x0 to 0xFFFF since 0xFFFF is the largest 32 bit value possible. When a 64 bit application talks to the CPU, it can reference addresses from 0x0 to 0xFFFFFFFF. That doesn't sound like that much more, but you're talking about ~4,200,000,000 vs ~4,200,000,000*4,200,000,000 - it's quite the significant increase.

    To answer your question, simply lower that to -Xmx1536M or -Xmx1024M (which would severely limit the pool of RAM available to the virtual machine) or install a 64 bit copy of Java and tell Intellij to use that one, then you can use as many bytes of RAM for the heap as there are grains of sand on the Earth, so long as you've got the hardware for it!

    Don't get discouraged by issues like this, keep digging and maybe try looking up the specific error messages you get going forward. There's tons of Stack Overflow articles written for this specific issue, and those answers will generally have better references than you'd find here or any other general forum! When you go down your own "figuring it out" rabbit hole you'll end up understanding more than just getting a step by step guide to fixing a specific issue!
    Reply With Quote  
     

  2. Thankful users:


  3. #12  
    BoomScape #1
    BoomScape's Avatar
    Join Date
    May 2013
    Posts
    2,422
    Thanks given
    289
    Thanks received
    234
    Rep Power
    48
    Quote Originally Posted by OSRS. View Post
    Cool but can u explain more? After I download it? What should I do? And where to put the files, etc?
    mate seriously do you not know what ram is? idk if you're trolling yourself

    from the sounds of it and what others are saying if you're on a 32bit machine/download then make sure you remove it and download a 64bit lol
    Attached image
    Reply With Quote  
     

  4. Thankful user:


  5. #13  
    Registered Member
    Join Date
    Feb 2021
    Posts
    38
    Thanks given
    16
    Thanks received
    6
    Rep Power
    4
    Guys much thanks fixed. Req. Lock.

    I appreciate.
    Reply With Quote  
     

Page 2 of 2 FirstFirst 12

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [OSRS] [Kronos] Some Kronos Errors Fixing
    By Armo in forum Tutorials
    Replies: 15
    Last Post: 03-28-2021, 08:38 AM
  2. [Kronos] - Error trying to run server
    By Lumbo in forum Help
    Replies: 0
    Last Post: 02-15-2021, 10:53 PM
  3. Same error over and over?!!
    By phantomphreak in forum Tutorials
    Replies: 4
    Last Post: 09-28-2007, 01:20 AM
  4. [HELP]Render Error
    By Big J in forum General
    Replies: 3
    Last Post: 07-30-2007, 01:01 AM
  5. Error. Please reboot me :)
    By Inside Sin in forum Showcase
    Replies: 4
    Last Post: 05-13-2007, 03:39 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •