Unable to set heap size to 4gb in sun java application server pe 8.2

i have sun v890 machine with 32gb ram and solaris 10
i am running sun java system application server platform edition 8.2
when i am setting max heap size to 4GB
it is giving an error
Invalid maximum heap size -Xmx4096m
the specified size exceeds the maximum representable size
i want to know what i should do to increase this heap size.
also tell me if the JVM running is 64bit. if not how can i change it
to 64bit VM.

The maximum size for a 32-bit process on Solaris (any 32-bit process, not just Java) is 4GB, which includes the program text, thread stacks, and various other things in addition to the JVM heap. So the maximum heap you can expect to allocate for the appserver is about 3500MB.
SJSAS 8.2 does not support a 64-bit JVM; SJSAS 9.1 is needed for that. However, it's very rare that a Java EE application actually needs that much memory, and the 64-bit JVM has a performance penalty vs. the standard JVM. So more heap is probably not going to make your app run any better.

Similar Messages

  • Unable to remote deploy to Sun Java Application Server 9.1

    How do I configure Studio Creator to remote deploy to a stand alone sun Java Application server 9.1 installation ? I have tried configuring it as a remote deployment server in the IDE but that doesn't work.
    Edited by: TroyDuncan on Feb 19, 2008 2:25 PM

    See the following url for Supported deployment servers of the Sun Java Studio Creator IDE
    http://developers.sun.com/jscreator/sysreqs/depservers.jsp
    I would recommend using NetBeans . Sun Java Application Server 9.1 is tested with NetBeans:
    http://www.netbeans.org/community/releases/60/relnotes.html#supported_technologies
    Here are some urls to get started with NetBeans:
    http://www.netbeans.org/index.html
    http://www.netbeans.org/kb/index.html

  • Benefit of setting heap size

    Hello sir,
    what is the benefit of setting heap size in java....?
    java -Xms40m -Xmx80m <program name>

    benefit of setting heap sizeIt is not for the benefit! It is for the need!!
    If you are encountering java.lang.OutOfMemoryError, then you can avoid this error, by setting heap size as reasonable.

  • How can I set the size of an image in java?

    How can I set the size of an image in java? I have to choose the width and height of image...thanks to everybody...sorry for my english :-)

    Hi 43477
    Can you provide more details, do you want to setsize to display an image on a screen of when saving image etc?
    PS.
    There is a good invention called googlegoogle is good, but sometimes it's better to use more specific search, there is a search field avove on this page :)

  • Mapping set heap sizes to used memory

    Hi all,
    I've got a question about the parameters used to control your java process' heap sizes: "-Xms128m -Xmx256m" etc.
    Let's say I set my min and max to 2Gb, just for a simplistic example.
    If I then look at the linux server my process is running on, I may see a top screen like so:
    PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
    10647 javaprog 20   0 2180m 1.9g  18m S  1.3  3.7   1:57.02 javaWhat I'm trying to understand is what relationship - if any - there is between these arguments and the figures I see within top. One thing in particular that I'm interested in is the fact that I occasionally see a RES (or more commonly a VIRT) size higher than the maximum that I have provided to Java. Naively I would assume that therefore there isn't a relationship between the two... but I wouldn't mind someone clarifiying this for me.
    Any resources on the matter would be appreciated, and I apologise if this question is outside the realms of this particular subforum.
    Dave.

    Peter Lawrey wrote:
    user5287726 wrote:
    Peter Lawrey wrote:
    It will always reserve this much virtual memory, plus. In term of resident memory, even the minimum is not guarenteed to be used. The minimum specifies at what point it will make little effort to recycle memory. i.e. it grows to the minimum size freely, but a "Hello World" program still won't use the minimum size.No, Linux does not reserve virtual memory. Just Google "Linux memory overcommit". Out-of-the-box, every Linux distro I'm aware of will just keep returning virtual memory to processes until things fall apart and the kernel starts killing processes that are using lots of memory - like your database server, web server, or application-critical JVMs. You know - the very processes you built and deployed the machine to run. Just Google "Linux OOM killer".Thats not the behaviour I see. When I start a process which busy waits, but doesn't create any objects, the virtual memory sized used is based on the -mx option, not how much is used. Given virtual memeory is largely free, why would an OS only give virtual memory on an as needs basis.
    Busy looping process which does nothing.
    In each case the resident size is 16m
    option       virtual size
    -mx100m      368m = 100m + 268m
    -mx250m      517m = 250m + 267m
    -mx500m      769m = 500m + 269m
    -mx1g        1294m = 1024m + 270m
    -mx2g        2321m = 2048m + 273mTo me it appears that the maximum size you ask is immediately added to the virtual memory size, even if its not used (plus an overhead) i.e. the resident size is only 16m.Yes, it's only using 16m. And its virtual size may very well be what you see. But that doesn't mean the OS actually has enough RAM + swap the hold what it tells all running processes they can have.
    How much RAM + swap does your machine have? Say it's 4 GB. You can probably run 10 or 20 JVMs simultaneously with the "-mx2g" option. Imagine what happens, though, if they actually try and use that memory - that the OS said they could have, but which doesn't all exist.
    What happens?
    The OOM killer fires up and starts killing processes. Which ones? Gee, it's a "standard election procedure". Which on a server that's actually doing something tend to be the processes actually doing something, like your DBMS or web server or JVM. Or maybe it's your backups that get whacked because they're "newly started" and got promised access to memory that doesn't exist.
    Memory overcommit on a server with availability and reliability requirements more stringent than risible is indefensible.

  • Set heap size websphere

    Hello
    i was playing around with websphere and increased the heap size from 3072 to 5072. Now when i tried to restart the server...it wont come back up. I cant getinto the Websphere administrative console either. does any one know a way to set the heap size thru command line back to 3072 for this server?
    thanks!

    http://www-1.ibm.com/support/docview.wss?rs=180&context=SSEQTP&dc=DB520&uid=swg21164724&loc=en_US&cs=utf-8&lang=en

  • Setting heap size through oracleAS 10.1.3 enterprise manager

    Hi All,
    Can any body pls tell me how we can set java heap size through oracleAS 10.1.3 enterprise manager
    Best Regards
    Girish Tandel

    hi...
    Yes, we can set the heap size in opmn.xml file in java-options.... But this is not the good practice to mannualy edit server xml files. In OracleAS 10.1.2 we can set the same through OEM. But i am not able to set using oem in oracleas 10.1.3
    Best Regards
    Girish

  • Setting heap size

    I hope you will all forgive me because this has been exhausted although I followed all the advices.
    After the following examples, to check my own environment. I have done the following:
    long heapSize = Runtime.getRuntime().totalMemory();
        System.out.println(heapSize);
        // Get maximum size of heap in bytes. The heap cannot grow beyond this size.
        // Any attempt will result in an OutOfMemoryException.
        long heapMaxSize = Runtime.getRuntime().maxMemory();
        System.out.println(heapMaxSize);
        // Get amount of free memory within the heap in bytes. This size will increase
        // after garbage collection and decrease as new objects are created.
        long heapFreeSize = Runtime.getRuntime().freeMemory();
        System.out.println(heapFreeSize);
            Which outputs is:
    5177344
    66650112
    4437824
    Currently, it looks like my heap cannot grow more than 6.6M right?
    Now if I want to increase my maximum heap size, the command is adviced to be:
    java -Xmx128m readFile.class
    However, it keeps coming oout with an error:
    Exception in thread "main" java.lang.NoClassDefFoundError: readFile/class
    Where did that "main" come from? The only thing that I have done is that I have another class called myMain which calls this clss for test purposes.
    The class which raised this heap problem was a class I was using to read files as in the bellow:
    import java.io.*;
    import java.util.*;
    import java.util.regex.*;
    public class readFile
    private ArrayList<String>  dataFromFile= new ArrayList<String>();
        public String readFile(String fileNameIn, String encoding) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(
          new FileInputStream(fileNameIn), encoding));
          buffer = new StringBuffer();
        int i;
        while((i = in.read()) != -1) buffer.append((char)i);
        in.close();
        return buffer.toString();
    //return an array of each data read from file separated by a tab etc
      public ArrayList<String> getRecords(String fileNameIn) throws IOException {
          String  s = this.readFile(fileNameIn);
          String current;
          Pattern p = Pattern.compile("[^\t\n]+|\t(?=\t)|\t$",
          Pattern.CASE_INSENSITIVE);
          Matcher m = p.matcher(s);
          while(m.find()){
             current = m.group(0).trim();
             dataFromFile.add(current);
            }//while 
        return dataFromFile;
    }Message was edited by:
    McTaar
    Message was edited by:
    McTaar

    This is the error displayed:
    java.lang.OutOfMemoryError: Java heap space
         at java.util.Arrays.copyOf(Arrays.java:2760)
         at java.util.Arrays.copyOf(Arrays.java:2734)
         at java.util.ArrayList.ensureCapacity(ArrayList.java:167)
         at java.util.ArrayList.add(ArrayList.java:351)
         at readFile.getRecords(readFile.java:41)
         at myMain.main(myMain.java:79)readFile: 41 is
    dataFromFile.add(current);

  • Unable to set JPanel size in BorderLayout.CENTER

    I have a class that defines a GUI for a paint-type program. This class extends JPanel. Within the class, I add a JMenu, a vertical JToolbar to the WEST, a JPanel to the SOUTH and lastly, I add the JPanel that the user draws on in the CENTER.
    From my understanding of the BorderLayout, the CENTER object will take up the remaining available space. The program is run from an applet (which has a setPreferredSize() but it does not seem to affect anything - I think b/c the size specified for the applet in the HTML override it). Anyway, when I set the size of the applet in the HTML, the JPanel in the SOUTH gets cut off. In order to fit it, I have to make the size of the applet bigger - but that makes my CENTER JPanel too big. I need the CENTER JPanel to be a certain size b/c I'm saving the image - which needs to be a certain size.
    I do not understand why the JPanel SOUTH is getting cut off. The JToolBar on the WEST is not that big that it should be governing the size, rather it seems like that JPanel in the CENTER is. I've tried setPreferredSize() and setSize() for that CENTER JPanel, but neither of them seem to help.
    I'll appreciate any thoughts/suggestions - I can elaborate or send code if needed. Thank you all in advance.

    Try using setMinimumSize() and setPreferredSize() for all the other components in the frame other than the CENTER Jpanel. For example, if you want you applet to be 300 pixel high by 500 pixels wide, and you want the centre panel to be 200 x 400 pixels, set the other components as follows:
    Dimension westPanelSize = new Dimension(100, 300)); // width x height
    westPanel.setMinimumSize(westPanelSize);
    westPanel.setPreferredSize(westPanelSize);

    Dimension southPanelSize = new Dimension(500, 100)); // width x height
    southPanel.setMinimumSize(southPanelSize);
    southPanel.setPreferredSize(southPanelSize);Good Luck!
    - David

  • Unable to set paper size in SSRS (it always remain Letter)

    I am making a report in SSRS (SQL Server 2012). The main report has many sub reports under it. All main and sub reports have the following properties:
    Orientation: Landscape
    Margins: Custom
    Paper Size: A4
    When I export the report in Word, it always shows Paper Size as "Letter" and I have to change it to "A4" in it. Orientation and Margins are correctly exported. What's the problem with Paper Size? Why doesn't it export correct Paper Size
    as defined in SSRS which is "A4" and always resort to "Letter"?
    I see another use has same problem but no solution was identified.
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/fce60903-3d0a-4727-abcf-b2e3370bf7d8/ssrs-2008-and-page-size-issue
    EDIT
    I just created a new basic test report with one Tablix in it. It is also showing same behavior i.e. even though I have set Paper Size to A4 when I export the report in Word, it changes to "Letter".

    Hi Frank,
    I viewed XML file for a report. The xml file doesn't store paper size name.
    <PageHeight>8.5in</PageHeight>
    <PageWidth>11in</PageWidth>
    <LeftMargin>0.25in</LeftMargin>
    <RightMargin>0.25in</RightMargin>
    <TopMargin>0.5in</TopMargin>
    <BottomMargin>0.5in</BottomMargin>
    Thanks.
    Remember to mark as an answer if this post has helped you.
    This is my master report file and looks like it has correct values. Because orientation is landscape hence height is smaller than width in my case.
    <PageHeight>8.27in</PageHeight>
    <PageWidth>11.69in</PageWidth>
    <LeftMargin>1in</LeftMargin>
    <RightMargin>0.25in</RightMargin>
    <TopMargin>0.25in</TopMargin>
    <BottomMargin>0.25in</BottomMargin>

  • Setting Heap Size from JAR

    Hi,
    Does anybody know here how to specify the Heap size with JAR.
    From command line, I type java -jar -ms128M -mx350M IzoneIDE.jar
    My jar file is executable, so how can I specify the heap size in Jar Files.
    Please dont comment this as a Cross Post as I dont find any answer in Java Programming forum, thats why I post it here.
    Thanks
    Raheel

    Check here, http://java.sun.com/docs/books/tutorial/jar/
    not sure if the right info is there, but If you do find it pls let us know.
    ICE

  • Getting the size of a file on the application server ?

    hi,
    hi everyone !
    i' m trying to transfer a file with the function module FTP_R3_TO_SERVER...
    But for this, i need to know the size of the file i wish to transfer...
    I found out nothing about this, but if anyone have any idea, it would be really helpful...
    thnks.

    HI,
    Why don't you use a ShellScript for FTPing your file.
    You can execute it via ABAP and it will probably does the same
    but you don't have to know how big the file is.
    can think of a few:
    1) Check the F1 help on READ DATASET. It has the addition LENGTH which you should be able to use for this purpose.
    2) Call function SXPG_COMMAND_EXECUTE for command LIST_DB2DUMP. Parse the returned table. You may need to explicitly pass 'UNIX' or 'Windows NT' to the OPERATINGSYSTEM parameter.
    3) CALL 'SYSTEM' ID 'COMMAND' FIELD 'ls -l' ID 'TAB' FIELD result-sys.
    4) Disect AL11 and make use of the same C-calls
    There's probably more...
    if u r sending the data form presentation server (SAPFTP)
    use
    describe table itab line lin .
    size = lin * width of internal row
    If u r sending the data form application server
    read the data in applicaion server file in ur prg internal table and calculate as above and size of file in ftp_r3_to_server fun module
    Cheers,
    Chandra Sekhar.

  • How to Increase the memory size of a File in the Application Server

    Hello Abaper's
    I have generated a XML file for the data of  internal table (with 10 Records). When i download , i can see the XML file for the Entire 10 Records.
    But , while transferring the XML file to Applicationserver , it's  transferring only upto max 4 Records.I     assume that the memory is insufficient to  allocate 10  Records. Can we Increase the Memory size of the File on Application server. OR,  is there any error in My Source Code.
    Code i used to Transfer the XML File to Application server.
    OPEN DATASET FNAME FOR OUTPUT IN BINARY MODE.
    IF sy-subrc EQ 0.
       LOOP AT it_xmltab INTO wa_xmltab.
           TRANSFER wa_xmltab TO FNAME.
       ENDLOOP.
    ELSE.
      MESSAGE e004(zmsg5) WITH 'File FNAME not opened'.
    ENDIF.
    CLOSE DATASET FNAME.
    Regards
    Jv

    Hi,
    DATA : filename TYPE rlgrap-filename.
    DATA : doc_name TYPE char30.
    DATA : bin_size TYPE i.
    SELECT matnr matkl meins
           FROM mara INTO TABLE it_mara
           UP TO 10 ROWS.
    CALL FUNCTION 'SAP_CONVERT_TO_XML_FORMAT'
      EXPORTING
        i_filename           = filename
        i_xml_doc_name       = doc_name
      IMPORTING
        pe_bin_filesize      = bin_size
      TABLES
        i_tab_sap_data       = it_mara         "  contains  10 Records
      CHANGING
        i_tab_converted_data = it_xmltab.
    placing XML File in Appl. Server
    DATA : FNAME(60) VALUE 'xyz_File'.
    DATA : num TYPE i.
    DATA : xmldata(256) TYPE x.
      For Writing The data in Application Server
    OPEN DATASET FNAME FOR OUTPUT IN BINARY MODE. " ENCODING DEFAULT.
    IF sy-subrc EQ 0.
      LOOP AT it_xmltab INTO wa_xmltab.
        TRANSFER wa_xmltab TO FNAME.
      ENDLOOP.
    ELSE.
      MESSAGE e004(zmsg5) WITH 'File FNAME not opened'.
    ENDIF.
    CLOSE DATASET FNAME.
      For Reading The data in Application Server
    OPEN DATASET FNAME FOR INPUT IN BINARY MODE. " ENCODING DEFAULT.
    DO.
      IF sy-subrc EQ 0.
        READ DATASET fname INTO xmldata.
        WRITE :/ xmldata.
        Clear xmldata.
      ELSE.
        EXIT.
      ENDIF.
    ENDDO.
    CLOSE DATASET FNAME.
    at runtime i can see   
    it_mara  --> contain 10 records
    it_xmltab --> contain 7 lines (Each line size is 255 char). This table have XML format data,  (unknow format , with all numeric 
                        digits)
    it_xmltab is trasferred to application server , but the xml format is generated upto 4 records, and for the remaining records
    the XML format is not generated.
    the XML data in application server file is
    <?xml version="1.0"?><TY_MARA><TY_MARA><MATNR Datatype="C" Length="36">0-BUY1</MATNR><MATKL Datatype="C" Length="18">012</MATKL><MEINS Datatype="C" Length="6">PC
    </MEINS>
    </TY_MARA><TY_MARA><MATNR Datatype="C" Length="36">0-BUY2</MATNR><MATKL Datatype="C" Length="18">012</MATKL><MEINS Datatype="C" Length="6">
    PC </MEINS>
    </TY_MARA><TY_MARA><MATNR Datatype="C" Length="36">000000000000000001</MATNR><MEINS Datatype="C" Length="6">EA</MEINS>
    </TY_MARA><TY_MARA><MATNR Datatype="C" Length="36">000000000000000002</MATNR
    Regards
    JV

  • Unable to open .shtml file in Sun java web server 6.1

    Hi,
    I migrated my application from iPlanet 6.0 to Sun one web server 6.1 and after that I'm unable to open any .shtml file from my browser. This issue is not with all browser but only with few.
    Ex : It works fine with firefox 1.x but fails with firefox 2.x
    I tried adding the shtml_send Init parameters in Magnus.conf and edited the obj.conf, and my mime type has the following entry for shtml:
    type=magnus-internal/parsed-html exts=shtml,jbhtml
    Any help is appreciated
    Thanks
    SS

    What is the exact version of Web Server you are using? Should be in the error logs or try $start -version
    It would be faster if you can capture and cut and paste the data that is sent between firefox and Web Server in both the cases using /usr/sfw/bin/ssltap (http://www.mozilla.org/projects/security/pki/nss/tools/ssltap.html) or ethereal when you try to view that shtml file. We can see if its any different in both cases and try it from there.
    Also verify the steps given in http://docs.sun.com/source/817-1832-10/pgshtml.html
    mime.types should have :
    type=magnus-internal/parsed-html exts=shtml
    obj.conf should have :
    Service fn="shtml_send" type="magnus-internal/parsed-html" method="(GET|HEAD)"
    When you activate parsing, magnus.conf should have :
    Init funcs="shtml_init,shtml_send" shlib="install_dir/bin/https/bin/Shtml.dll" NativeThreads="no" fn="load-modules"
    Shtml.dll (or libShtml.so on UNIX), is located in install_dir/bin/https/bin for Windows, and install_dir/bin/https/lib for UNIX.

  • Set a already expired time to Scheduler(WebSphere Application Server)

    I try to use Scheduler in WebSphere Application Server 6.0
    what happen if I set an already expired date in setStartTime()?
    for example at time 14:00 I set 13:50 as StartTime in taskInfo.
    would the message be sent by Scheduler?

    Follow the bouncing link to a whole list of related material.
    http://www.google.com/search?hl=en&q=WebSphere+%2B+DataSource
    Google is your friend in times like this.
    Regards,
    PS

Maybe you are looking for

  • Adobe Patching / Versioning / sanity checks...

    All right... Psyche...   Unlike the title, it seems Adobe knows nothing of these things...  Am about to lose the plot with Adobe nothing anywhere, ever, should be as tiresome and soul sucking as not only over-frequent patching cycles, but the seeming

  • HTTP sender Adapter - XML parsing issue in SAP PI

    Dear All, We have a scenario where HTTP sends data to JDBC. We shared the URL with Sender application and they are trying to send the data to PI using URL. But when it comes to PI Integration Engine, we noticed the inbound payload in Plain text. Send

  • How to turn off monitor?

    Hii! Is it possible to turn monitor state into standby mode in Java? Thx.

  • How to get item's cost price?

    I want to get Item's cost price. I get a business boject 'item',g_oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems),There are two key to decide one cost price,one is 'itemcode',another is 'whscode',How to get one record by using 'GetByKey'

  • About for all entries in itab usage issue

    hi i will get a lot of material information first. the next i will get inforamtion about table MARC AND MBEW. one statement i use sap function to get MARC:   CALL FUNCTION 'MARC_ARRAY_READ'     EXPORTING       KZRFB                = ' '       NEUFLAG