Error Increasing Stack size

We have a web app that is getting OutOfMemory errors so we want to increase the size of the heap. The servers have 32gb of memory but we can't go higher in the server configuration than 4gb. On startup anything higher results in:
[18/Oct/2007:19:24:14] warning ( 8763):      CORE3283: stderr: Invalid maximum heap size: -Xmx8000m
[18/Oct/2007:19:24:14] catastrophe ( 8763):      CORE4005: Internal error: unable to create JVM
[18/Oct/2007:19:24:14] failure ( 8763):      CORE4009: Failed to load JVM (check your JRE)
[18/Oct/2007:19:24:14] failure ( 8763):      CORE3187: Late initialization failed: Error running init function load-modules: initialization of /opt/SUNWwbsvr/bin/https/lib/libj2eeplugin.so failed
We're running Sun Java Server 6.1 SP 7 on Solaris 10.
Thanks

If you use a 64-bit Sun Java System Web Server, it automatically uses a 64-bit JVM.
If you are running Web Server 6.1, then use the 64-bit version of 6.1 which you can download from
http://www.sun.com/download/products.xml?id=4694392a
If you are running Web Server 7.0 or 7.0 Update 1, then please refer to the following links which explain how you can install/enable the 64-bit features in the server
http://docs.sun.com/app/docs/doc/819-2625/6n4tcivj0?a=view
http://docs.sun.com/app/docs/doc/819-2625/6n4tcivjl?a=view
http://docs.sun.com/app/docs/doc/820-1061/gdhec?a=view

Similar Messages

  • How do I increase stack size beyond 65532 with help of ulimit command

    How do I increase stack size beyond 65532 with help of ulimit command

    Are you already using "64-bit Kernel and extensions" as noted in this pane?

  • BUG: Unable to increase stack size in OJVM

    Hi,
    I have a complex ADF Faces page (jspx) that has reached the level of complexity that I can reliably cause the JVM to die when running the page with:
    Fatal error: Cannot find class java/lang/StackOverflowError
    Process exited with exit code -1.when running within JDeveloper. I have tried adding
    -Xms1024m -Xmx1024m(yes, I know an outrageous stack size) to the project run properties, and it still crashes. However, if I change to the server JVM instead of ojvm, it works fine, even with a much smaller stack, although the default stack size will crash as well.
    So,
    1). Shouldn't -Xms and -Xmx work for OJVM? If not, this is going to be a pain when I need to debug, as OJVM rocks for that.
    2). Is there some way to configure ADF/OC4J so that I won't bomb like this? I'm guessing that the XML document (JSPX) is big enough that it's causing the XML parser to blow up. Just a guess however.
    Thanks,
    John

    It's unclear if the problems discussed happen after OJC compiles, or Javac compiles, or both. We have uncovered a bug in the compilation of jspx files using OJC. There is a chance that this bug fix will fix the problems mentioned. Email me at keimpe.bronkhorst AT oracle.com if you want to try out a patched OJC. This is not an OJVM fix, so if you compile with Javac, I can't help you at this time.
    Keimpe Bronkhorst
    JDev team

  • Checking stack size

    I have written a JNI app and it seems to work fine, but processing with very large files I run out of stack space.
    I have solved this issue for the moment by changing the stack size with the -Xss param to java but this is not the ideal issue because with even bigger files I still will have issues.
    So, I have 3 questions:
    1. Is there any way (in the c++ dll) to query the total stack size ?
    2. Is there any way to determine free (available) stack size ?
    3. Is there any way to increase the stack size when the dll is already running (if it starts to get low)
    I look forward to your thoughts
    Ding

    I have written a JNI app and it seems to workfine,
    but processing with very large files I run out
    of
    stack space.
    That suggests that you have a design problem.
    As a guess you are using recursion. Start by
    unrolling the recursion code to produce a
    non-recursive solution.ood Guess but there is no recursion in my code :-)
    While I am always trying to optimize my design, in
    this case I am constrained by 3rd party c libraries
    that are using very large multi dimensional arrays of
    doubles that are neccessary for lots of complicated
    math doing triangualtion of satellite data. So, I
    have no control over how much memory they want to
    consume.
    ood Guess but there is no recursion in my code :-)
    Then it is unclear as to what you think a good solution would entail.
    Do you intend to just to keep retrying the processing step with ever increasing stack sizes? Will that not impact the processing time? Why not just start with a larger stack size? And if the stack size just continues to grow because the file sizes are continuing to grow then what?
    While I am always trying to optimize my design, in
    this case I am constrained by 3rd party c libraries
    that are using very large multi dimensional arrays of
    doubles that are neccessary for lots of complicated
    math doing triangualtion of satellite data. So, I
    have no control over how much memory they want to
    consume.
    One solution would be to create a C app, not a java one. Find the maximum amount of stack space that you can allocate via a C app and still operate (this depends on what happens with the file itself.) The output goes to a file.
    Your java app just starts that in a separate process space.
    >>
    >
    I was referring to the native C stack, used within
    the c++ dll, for which the java VM starts via the
    -Vss flag. I know the initial total as I am setting
    it at runtime. I just wanted to print the value from
    within the dll. #2 (below) is more important
    though.
    That would depend on your OS and compiler.
    2. Is there any way to determine free(available)
    stack size ? This is the part I was mostly hoping for an answer
    to, as I need to communicate with the parent java app
    if the stack space gets too low, instead of just
    allowing the dll to crash when it runs out
    That is a two part question. You want to know the size and you want to know if it gets 'too low'.
    You suggested that this is all stack based processsing. So unless you have C methods that are called by the library and in addition it is recursive in nature then this is not possible. There is no point where you could detect it.
    You can analyze the file yourself and compute a size before you start processing. But if that is what you are doing then you should do it first and let the java app know the result.
    Other than that most OSes allow you to catch 'system exceptions' (which might or might not be actual C++ exceptions.) One of these would be generated when the stack overflows.
    You then convert into something that java understands.
    For example in Windows there is a function that allows you to set up system exceptions so that they cause a C++ exception to be thrown. You would then catch this exception and convert it into a java exception.
    That lets you know that it didn't work but then what?
    For example in windows you can create a custom stack for the dll but only when the dll loads (so far as I know.) So to restart this you would have to unload the dll and that means that you will have to have everything wrapped in a custom class loader (which is the only way to cause a dll to be unloaded.)
    Not to mention that in my experience the windows function that I mentioned above doesn't necessarily always catch everything.
    >>>
    >>
    No. The VM must be restarted.if that is true, It i a bummer :(You can however, on most OSes, increase the stack size for the shared library. This is done on start up of the shared library. To resize it however means that the shared library must be reloaded. And the only way you can do that in the Sun VM is with a class loader.

  • -Xss: Stack size too large

    There is a requirement of high stack size in the application but when I try to set the stack size > 128m , I get the below error
    [ERROR] Argument error: -Xss130m
    [ERROR] -Xss: Stack size too large
    Could not create the Java virtual machine.
    Is there a upper limit of 128m on stack size. The Jrockit version is 64 bit.
    Please help

    Hi,
    Are you running OS in 32 bit or 64 bit.
    eg:
    O/S 32-bit Default 64-bit Default
    Windows 64 kB 320 kB
    Linux 128 kB 1 mB
    Please check your stack size you mentioned it is 128m please change to KB it will work.
    Regards,
    Kal

  • How can I increase the hard limit of the stack size?

    Hi,
    My process gives an error of segmentation fault (SIGSEGV) that is caused because the stack limit is reached. I have a doubt about how to increase the stack size. I have tried change it with "ulimit - hard" but this size is 65532kb, and is very low for my process. How can I increase the hard limit?
    Thanks.

    When last I checked, the kernel had a fixed stack size limit.
    Do you have the source code to this application? If so, [see this Tiger stack size article|http://homepage.mac.com/eric.c/hpc/contents/documentation/How%20to%20in crease%20the%20stack%20size%20on%20Mac%20OS%20X.pdf], and specifically have a look at the +ld -stack_size+ mechanism; rebuild the code with a bigger limit.
    Entirely FWIW, this question would be more typical over in the developer forums or maybe in the Unix forum if you don't have Apple developer access. Better audience for application development and for software-related questions over there.

  • Error stack size

    Hi,
    i have build a package framework which in exceptional situations uses an encapsulated raise_application_error method with the
    -add to error stack- option. In combination with
    -speaking- messages it seems as if i am now running against the error stack size border. What i see is that the primarily generated errors are lost.
    Is it possible (and recommended) to increase the size and does anyone now how to do this ? (I still have to use 8.1.7)
    Thanks in advance,
    Bjoern

    First of all: you should mention it when you cross-post, to prevent people from wasting their time providing an answer already given in the other site.
    https://community.jboss.org/thread/223626
    Doing a google for "The stack size specified is too small, Specify at least 160k" gives plenty of reason to believe it is not really a 'problem', but simply a requirement of the JVM; how and why can only be answered by the developers of said JVM, you're not going to find them here because this is a user to user forum. And this isn't any different under Java 7.
    So other than downgrading, I don't see how you're going to make any impact. I would do the Google yourself, collect the search results that all indicate that the startup scripts are adjusted to the wishes of the JVM and present that to the vendor to shut them up. Anything more - well good luck getting an official statement from Oracle.

  • Cannot increase the stack size

    Hi,
    We have a program which gives a StackOverflowError. Trying the increase the stack size using command line options does not work. A simple program shows that the stack is the same size, whatever option we set.
    This is the program:
    class StackOverflowTest
    public static int counter = 0;
    public static void main(String[] a)
    try {
    sub();
    } catch (StackOverflowError e)
    System.out.println("recursive calls: "+counter);
    public static void sub()
    counter++;
    sub();
    We tried several -Xss (and -Xoss) settings: 600K, 2048K, 4M but got the same recursion deep: 16683 (with Eclipse), or 16689 (command line).
    We used Windows XP.
    Do you have any clue?
    Many thanks,
    Zsolt

    Oh good, they seem to have broken the forum formatting again.
    ====================================================================================================================
    Bug ID:     4362291     Stack size argument ignored (-Xss and -ss)
    ====================================================================================================================
    public class StackOverflowTest {
        public static int counter = 0;
        public static final void main(String[] a) {
            new Thread(new Runnable() {
                public void run() {
                    try {
                        sub();
                    } catch (StackOverflowError e) {
                        System.out.println("recursive calls: "+counter);
            }).start();
        public static final void sub() {
         counter++;
         sub();
    /code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Error when increasing tempdb size UCCE 7.5

    I am receiving the following error when attempting to increase the size of the Tempdb on our Historical Data Server.
    Expanding database tempdb
    Creating database device tempdbD112121455 for TempDb
    SQL Msg: (102 0r 0x66) Incorrect syntax near 'NAME'.
    Error querying database.
    Any help would be greatly appreciated.
    Jason K

    This appears to be an issue with case sensitivity.
    Creating database device tempdbD112121455 for TempDb.
    I was able to increase the size through the SQL Managment Tool and my Webview reports started working again. Is there a way to correct this without having to reinstall SQL (2005)?

  • Increase of Stack size impact

    Hi there,
    Please, what is the impact of increasing the Stack size with the -Xss option for the whole system. is there any relationship or formula between -Xms, -Xmx and -Xss options.
    Is it necessary to increase the -Xmx option When i increase the -Xss option.
    I'm using Weblogic 9.1 within a machine of 16GB under AIX 64bits and IBM JVM. My parameters are : -Xms=-Xmx=1GB and i think pass the -Xss to 1MB because i get many StackOverflow exceptions.
    Think you for your help

    hi,
    Changing the fonts in Print using ABAP is not possible. as basic report output is a text editor.
    By changing "Customizing of Local Layout" will only change in display screen and not in print.
    One possible way to create a new printer formatr thry SPAD and use that format in while printing.
    to know more details about SPAD
    Using SPAD - SAP Spool Administration to print different paper size
    The SAP spool system manages its own output devices. This includes mostly printers, but also fax and archiving devices. In order for you to use output devices defined in your operating system from the SAP System, you must define these devices in the SAP spool system.
    this is a piece of code from SAP-IMG ...its about printing fonts...see if this helps u....
    REPORT ZFONT NO STANDARD PAGE HEADING LINE-SIZE 80 LINE-COUNT 65.
    Start of print-control
    NEW-PAGE PRINT ON.
    PRINT-CONTROL FUNCTION 'SF000'.
    WRITE: / 'This is CPI 20'.
    SKIP.
    PRINT-CONTROL FUNCTION 'SF020'.
    WRITE: / 'This is CPI 6'.
    SKIP.
    PRINT-CONTROL FUNCTION 'SF008'.
    WRITE: / 'This is CPI 12'.
    Depending on your SAP printer device, this may also work
    PRINT-CONTROL FONT 1 LPI 6.
    you can try to change font and LPI numbers
    WRITE: / 'font 1 lpi 6'.
    PRINT-CONTROL FONT 2 LPI 6.
    WRITE: / 'font 2 lpi 6'.
    PRINT-CONTROL FONT 3 LPI 6.
    WRITE: / 'font 3 lpi 6'.
    End of print-control
    NEW-PAGE PRINT OFF.
    *--- End of Program
    also check out these links:
    For More Info Go thru this Link,
    font size in basic list output
    http://www.sapdesignguild.org/resources/MiniSG-old/BCMSG03E_DEL.htm
    http://sap4.com/modules.php?name=conteni2&pa=showpagina&pid=100
    do reward points if it helps
    rgds

  • RangeError: Maximum call stack size exceeded

    Dear all,
    we are executing and EDGE project in a Samsung SmartTV.  In more powerful models (more memory and cpu) the execution is correct. but in some old TV models we receive the following  message:
    File:   file://c/........../EDGE_006/edge_includes/edge.2.0.1.min.js
    Line No:  135
    Error Detail: RangeError: Maximum call stack size exceeded.
    It seems that this happens depending on the complexity of the EDGE project, as for some simple projects it works.
    we would like to adjust our EDGE project for this less powerful models modifiying animations and simplifying complexity, but we dont know where to start (which animations to remove, etc.)
    Or if there are some parameters in the edge API to adjust in order to increase performance in low memory browsers.
    Thank you in advance,
    Luis

    sunil-online wrote:
    > I am calling an external DLL and running it in the UI thread. How much
    > stack space is available when they are on separate threads or on the
    > UI thread?
    >
    > The problem is that I am getting seemingly random crashes while
    > running this VI and after I quit labview after stopping and uninit-ing
    > my DLL.
    Unless you know this DLL is using exceedingly lots of stack (at least
    several dozens of MB) for whatever obscure reasons it is very unlikely
    that running out of stack space is causing your problem. More likely
    either the DLL does something nasty to a data pointer passed in to it or
    you made an error in setting up the call to the DLL.
    For instace if the DLL expects strings or array pointers to be passed in
    they need to
    be allocated by the caller (here LabVIEW) and you need to
    tell LabVIEW to do that in the diagram code.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Call Stack Size

    Is there a way to increase the call stack size of LabVIEW or to know
    when it has been exceeded?
    Thanks.

    sunil-online wrote:
    > I am calling an external DLL and running it in the UI thread. How much
    > stack space is available when they are on separate threads or on the
    > UI thread?
    >
    > The problem is that I am getting seemingly random crashes while
    > running this VI and after I quit labview after stopping and uninit-ing
    > my DLL.
    Unless you know this DLL is using exceedingly lots of stack (at least
    several dozens of MB) for whatever obscure reasons it is very unlikely
    that running out of stack space is causing your problem. More likely
    either the DLL does something nasty to a data pointer passed in to it or
    you made an error in setting up the call to the DLL.
    For instace if the DLL expects strings or array pointers to be passed in
    they need to
    be allocated by the caller (here LabVIEW) and you need to
    tell LabVIEW to do that in the diagram code.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • JVM 1.4 default stack size

    Hi,
    I would like to know what is the default stack size of JVM of jdk 1.4.
    Is there any command which i can use to find the current stack size set up?
    Is the heap size & stack size same?
    Actually i'm getting a java.lang.StackOverflowError when i execute a class ProgramCallDocument which is present in the jt400.jar provided by IBM in thier Websphere Application Studio Server suite.
    The class is working fine with jdk 1.3. But it is giving an error in jdk 1.4
    Do any one have any clue about this? Please Help.
    Thanks,
    Jac.

    Thanks for the reply...
    Actaully I was looking for how to know the current stack size set for JVM. I assume that using -Xss command will increase the stack size, but before doing so I need to take the current stack size.
    Please let me know if you know the command for getting the current stack size set for JVM.
    Thanks,
    Jacob.

  • Max-stack-size - default_stksize

    Hi,
    First, sorry for my english ^^
    I'm new on Solaris. I installed Solaris 10 on Sun V490 . I use Core Network.
    Why with the default setting, daemons or process of the OS "don't work" like this:
    Jun 17 14:50:10 unknown genunix: [ID 883052 kern.notice] basic rctl process.max-stack-size (value 8683520) exceeded by process 353In this example I generate the error with the format command. But I get this error with other command or deamon like nscd.
    I had the same problem with the value max-file-descriptor. The values set by projmod for the system project did not seem take effect. Thus I used the "old" parameters rlim_fd_cur, rlim_fd_max. Now it's ok.
    I find this parameter default_stksize in the Sun documentation. I put this in my /etc/system file:
    set default_stksize=16384At the boot time I have no error message for the value, but the max-stack-size value is the same:
    prctl -n process.max-stack-size 130
    process: 130: /usr/sbin/nscd
    NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT
    process.max-stack-size
    basic 8,28MB - deny 130
    privileged 127MB - deny -
    system 2,00GB max deny -
    nscd is in the system project:
    ps -p 130 -o project
    PROJECT
    system
    Thank in advance, any idea is welcome.
    Guillaume

    Hi Prasad,
    Block Size is the number of parallel processes that are being executed in background during the application.  This is normally a configuration activity to be configured in line with basis.
    In Block size, we enter the number of objects to be processed per block by the CIF comparison/reconciliation during data selection in SAP APO or in the partner system.
    If you increase the block size, the memory required also increases. This has a positive effect on performance. If processes are cancelled due to lack of memory, you can decrease the block size to save memory.
    If you do not enter anything here, the system determines the block size dynamically from the number of objects that actually exist and the maximum number of work processes available.
    Normally, when you execute a job in background, it picks up the application server automatically or by manually defined server.  In parallel processing, at a time, one or more job of the same identify can be triggered under this scenario by defining application servers.  But too many parallel processing activity will affect the performance.
    One needs to define the parallel processes also to control system behaviour.  The Parallel processing profile is defined for parallel processing of background jobs. You then assign these profiles to variants in the applications.
    Regards
    R. Senthil Mareeswaran.

  • Change the default stack size in the java.exe file

    Does anyone know how to change the default stack size of the jvm?
    I'm having problems with my stack. Is there anyway I can change it. I found a tool editbin.exe which is shipped with Visual c++, however I don't have the tool.
    Thanks,
    William

    I am using JNI to connect java with a C++ application.
    When calling the C++ appliction, STACK_OVERFLOW
    happends. I tried java -Xss<size> to increase the
    stack size, but failed.This has nothing to do with the above question.
    Does anyone knows why?Probably because the java parameter specifies the java stack size and not the C++ stack size.

Maybe you are looking for

  • File Sync does not stay on in Adobe Creative Cloud - OSX Mavericks

    To download assets (clip art) from Creative Cloud Market, File Sync in CC must be on. I turn it on, but when I try to download it turns itself off. Anyone else have this issue?

  • Quick CSS box question

    Hi guys, Firstly a very Merry Christmas to you all ! I'm just getting to grips with converting all the text on my site to CSS and have a quick question. On some of my pages I add an 'Also see' links box aligned to the right - it's a CSS div tag thing

  • Uzbl, help a newbie!

    Thanks for coming in~! Prepare for newbie questions! I want to make the switch from Chromium to Uzbl for a majority of my browsing. I have used Uzbl on a live Ubuntu environment and the loading is incredibly fast. Even the initial page and all follow

  • [svn] 3403: Fix for SDK-17097 - Missing summary description of a class in package classes table

    Revision: 3403 Author: [email protected] Date: 2008-09-29 12:36:37 -0700 (Mon, 29 Sep 2008) Log Message: Fix for SDK-17097 - Missing summary description of a class in package classes table QA: Yes Doc: Tests: checkintests Ticket Links: http://bugs.ad

  • Safari 5 cannot run on windows XP pro

    I am a bit confused about this problem. Reading some topics I saw that solution for my problem could be to delete or move "safari" folder from C:\Documents and Settings\user name\Application Data\Apple Computer. But this doesn't work for me. Also I t