Professional Web Applications Themes

java on unix help - Linux / Unix Administration

I have already posted on java groups: I am trying to execute a java program with -Xmx2700m it fails on gentoo. the max i can set is -Xmx2650m. But if I am able to set much larger values on Fedora linux. We are using same jdk1.5.0 on both systems. any pointers please? -------------------------------------------- Following is the Test.java program on gentoo: public class Test { public static void main(String[] args) { System.out.println("Hello World"); } } # java -Xmx2700m Test ~ Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine. ...

  1. #1

    Default java on unix help

    I have already posted on java groups:

    I am trying to execute a java program with -Xmx2700m it fails on
    gentoo. the max i can set is -Xmx2650m.

    But if I am able to set much larger values on Fedora linux.
    We are using same jdk1.5.0 on both systems. any pointers please?
    --------------------------------------------
    Following is the Test.java program on gentoo:

    public class Test
    {
    public static void main(String[] args)
    {
    System.out.println("Hello World");
    }
    }

    # java -Xmx2700m Test ~
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Could not create the Java virtual machine.
    # uname -a ~
    Linux linux6 2.6.12-gentoo-r6 #1 SMP

    On Fedora Core 3:
    ------------------
    # uname -a
    Linux linux7 2.6.9-1.667 #1

    # java -Xmx2900m Test
    Hello World


    TIA
    Ravi KAtti

    ravikatti@gmail.com Guest

  2. #2

    Default Re: java on unix help

    com said: 

    Could be that the kernel on gentoo is compiled with a different
    memory model than that on Fedora.
    --
    Wolf a.k.a. Juha Laiho Espoo, Finland
    (GC 3.0) GIT d- s+: a C++ ULSH++++$ P++ L+++ E- W+$ N++ !K w !O !M V
    PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
    "...cancel my subscription to the resurrection!" (Jim Morrison)
    Juha Guest

  3. #3

    Default Re: java on unix help


    Juha Laiho wrote:
     
    >
    > Could be that the kernel on gentoo is compiled with a different
    > memory model than that on Fedora.
    > --
    > Wolf a.k.a. Juha Laiho Espoo, Finland
    > (GC 3.0) GIT d- s+: a C++ ULSH++++$ P++ L+++ E- W+$ N++ !K w !O !M V
    > PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
    > "...cancel my subscription to the resurrection!" (Jim Morrison)[/ref]

    Hey thanks for the reply. Its all about allocating contiguous memory.
    Any kernel tweaks that can be helpful?

    ravikatti@gmail.com Guest

  4. #4

    Default Re: java on unix help

    In comp.unix.admin com: 
     
     
    [..]
     

    Try raising (needs root permissions) the maximum data segment
    size ('ulimit -d <nnn>') and see if this works better. Check the
    working box settings and use this as start.

    [..]

    Good luck

    --
    Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
    mail: echo qr | perl -pe 'y/a-z/n-za-m/'
    #bofh excuse 109: The electricity substation in the car park
    blew up.
    Michael Guest

Similar Threads

  1. UniX Sys Admin /Unix CAD Support specialist contract-Texas
    By orastaff@mindspring.com in forum Linux / Unix Administration
    Replies: 2
    Last Post: August 17th, 05:32 PM
  2. Replies: 3
    Last Post: April 18th, 06:24 PM
  3. UNIX ADMIN/ JAVA/ CONTRACT/ IMMEDIATE
    By Tom Gugger in forum Linux / Unix Administration
    Replies: 2
    Last Post: June 26th, 01:49 AM
  4. Want to learn UNIX with Java or Jython instaed of C or C++?
    By Marc Rochkind in forum UNIX Programming
    Replies: 1
    Last Post: July 15th, 09:34 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139