Results 1 to 8 of 8
  1. #1
    SteveP is offline Member
    Join Date
    Jun 2011
    Posts
    3
    Rep Power
    0

    Default 64 bit JVM with a 32 bit application to extend memory limit?

    Hi!

    I'm new to java, I tried looking for this information on the net but found nothing, maybe it's very specific and difficult to come by.

    I'm trying to extend the maximum heap size with a 32 bit application that uses a 32 bit JVM that resides in it's program folder. I use Windows 7 64 bit, if I'm not wrong then my effective limit is somewhere around 1.5gb even if I can set it to 4gb on the program's memory options.

    Is there a way to extend this memory limit 'cheating' somehow?

    I thought about making the application use a 64bit JVM, is this possible?

    Thanks in advance.

  2. #2
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    620
    Rep Power
    4

    Default

    I should use some linux OS. It has not limit on memory.
    it Independence would you will use 64bit or 32bit JVM you have limit memory from OS.
    Skype: petrarsentev
    http://TrackStudio.com

  3. #3
    SteveP is offline Member
    Join Date
    Jun 2011
    Posts
    3
    Rep Power
    0

    Default

    Hi! Thanks for your input!

    Unfortunately my program doesn't support Linux... must be run on Windows 7/Vista/XP...

  4. #4
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    620
    Rep Power
    4

    Default

    if it's not secrete what will your program do? Usually problems with head memory relates with badly coding. May you have more 50 variables in your class or another one.
    Skype: petrarsentev
    http://TrackStudio.com

  5. #5
    SteveP is offline Member
    Join Date
    Jun 2011
    Posts
    3
    Rep Power
    0

    Default

    Hi, no, it's no secret, it's a database management software.

  6. #6
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    Quote Originally Posted by Petr View Post
    I should use some linux OS. It has not limit on memory.
    Huh?, how would a 32 bit JVM be able to have a heap space over the 2GB limit that the addressing is able to access and be able to use that "extra" space?

  7. #7
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    Quote Originally Posted by SteveP View Post
    Hi! Thanks for your input!

    Unfortunately my program doesn't support Linux... must be run on Windows 7/Vista/XP...
    Let me guess, either an Access DB and/or Runtime Exec calls. In either case, bad choice.

  8. #8
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    Also, your codes compile into byte code that can be used by either a 64-bit or 32-bit JVM equally. problems will occur on windows when you have a 32-bit Access DB, though, as the system will, then, not provide 64-bit ODBC drivers.

Similar Threads

  1. setting memory limit for java?
    By MuslimCoder in forum New To Java
    Replies: 1
    Last Post: 08-26-2010, 07:09 PM
  2. Idle Java Application - Memory Leak? (JCONSOLE)
    By icesnake in forum New To Java
    Replies: 6
    Last Post: 06-12-2010, 10:00 AM
  3. Out of memory work around for a java application (please help!)
    By javameanslife in forum Advanced Java
    Replies: 9
    Last Post: 02-02-2010, 02:52 PM
  4. Memory Leak using a Swing Application Project
    By iimasd in forum AWT / Swing
    Replies: 0
    Last Post: 11-27-2007, 11:20 AM
  5. swing application consumes much memory
    By oregon in forum AWT / Swing
    Replies: 1
    Last Post: 08-05-2007, 09:25 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
  •