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]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • "Segmentation fault" while running code, how can I increase the stack size?

    Hi, I only have very limited knowledge about c+ codes and compiling them and I would be very happy if someone can assist me.
    My problem: I have two c++ codes, one with an array size of ~100,000, the other with ~1,500,000. When I compile them using terminal g++ -o commands, the smaller one works with no problem (it takes less than a minute to run), the larger one gives "Segmentation fault". I think it is a memory allocation problem and I am not an expert on dynamic memory allocation which I want to avoid for now.
    My question: When I compile the large code in Windows Visual Basic, I can go to settings to increase the stack and heap sizes and it does work. Is there a similar thing in OS X Leopard? I found some commands to do that in the terminal window but I wasn't able to resolve my problem.
    Thanks for all your help.

    Thanks for the link, I actually looked for a developer discussion group but was not able to find it through the main discussion page. I reposted to my question there.

  • 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.

  • 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

  • I need help increasing the stack/heap size of my JVM

    I am currently trying to run a recursive quick sort program to sort a reverse sorted array of 60,000. I realize this takes up a lot of memory and may not be the most efficient form of quick sort but I need to get some information from this program run. Everytime i try to run the program I get a stack overflow error. From what I have read on these forums this is due to an inadequate stack/heap. I have read that you just type a line of code in when you start up your JVM to increase the stack/heap but how exactly do you do this? Could someone give me a step by step process? I am new at this so the more details the better. Thanks!

    public static void quickSort(int f, int l){
         if (f < l){
              int m = split(f,l);
              quickSort(f, m-1);
              quickSort(m+1, l);
    public static int split(int f, int l){
         int x = a[f];
         int sp = f;
         for (int i=f+1; i<=l; i++){
              if(a[i] <= x){
                 sp++;
                 swap(i,sp);
         swap(f,sp);
         return sp;               
    // A method to swap values of an array
    public static void swap(int i, int j){
         int temp = a;
         a[i] = a [j];
         a[j] = temp;     
    }Haven't really looked at the code, but basically you'd have a source of randomness (an instance of Random for example) and choose x like this instead:private static Random random = new Random();
    public static int split(int f, int l){
         int x = a[random.nextInt(l-f) + f]; //but check for one-off errors here, I haven't checked this

  • How can I increase the thumbnail size when using Safari to upload an image to a website?

    I upload many images to multiple websites and when using Safari to upload these images, the thumbnails are so small I can barely make out what the image is. I can easily figure out how to increase the thumbnail size when viewing them in Finder and set the default to my liking, but I cannot seem to find a way to do this in Safari. The last topic I saw on this was form 2013 and have not seen any update. Is there a way to do this?

    Delete all unused, invisible layers.
    Sometimes zip compression is better than jpg compression (in the pdf output settings). Zip is lossless, and works better with non gradient colour or no images.
    Flattening the image before you save it to pdf can reduce the file size if you are using jpg compression.
    Post a preview of your pdf and we can comment further on how to reduce the file size.

  • How to Increase the retreving size of instances using PAPI filters.

    Hi,
    How to Increase the retreving size of instances using PAPI filters.
    In my engine database instance size exceeds 2500 then we are getting following exception.
    If we login in to user workspace able to see the instances but while trying to retrieve from PAPI getting below exception and showing the user's inbox aize as 0.
    In Process Admin console we set all the required parameters.
    Still I m getting the same problem.
    Can you please lgive mev the solution.
    <Mar 23, 2010 8:58:24 PM SGT> <Warning> <RMI> <BEA-080003> <RuntimeException thrown by rmi server: fuego.ejbengine.EJBProcessControl_1zamnl_EOImpl.getInstancesByFilter(Lfuego.papi.impl.j2ee.EJBSecureEngineInfo;Ljava.lang.String;Lfuego.papi.Filter;)
    java.lang.ClassCastException: cannot assign instance of java.util.HashSet to field fuego.view.FilterImpl.attributes of type java.util.List in instance of fuego.view.FilterImpl.
    java.lang.ClassCastException: cannot assign instance of java.util.HashSet to field fuego.view.FilterImpl.attributes of type java.util.List in instance of fuego.view.FilterImpl
         at java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2032)
         at java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1212)
         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1953)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
    Regards,
    Bharath.
    Edited by: bg57295 on Mar 24, 2010 6:45 PM

    Hi Bharath,
    Believe me, you have an incompatibility between different build#.
    PAPI has an instance cache. When certain process has more instances than the maximum specified, the cache is switch to status OPEN. That means, that PAPI will not be able to resolve some instance queries using the information in the cache. When that occurs, PAPI forward all those queries to the engine.
    The incompatibility introduced is in the communication between PAPI and Engine. So, you only get the exception when you have more instances than the maximum cache size.
    Regards,
    Ariel

  • How can I increase the font size in MacMail?

    I would like to increase the font size in my MacMail e-mails in my 13 Inch MacBook Air. The current font size is miniscule and I cannot find the commands to increase it (I am new to the MacBook Air product).
    Can anyone please help?
    Thank you.

    Change font size and color at Preferences -> Fonts & Colors.

  • How do I increase the font size of my app group names?

    At the moment the font is too small and hard to read without glasses on. Does anybody know how the font size of the app groups that I have created can be increased in size or the app names in general? I have found the option to increase the font size in mail etc but not for app names. Any help would be appreciated. Thanks in advance.

    You can't.
    You could put in a feature request: http://www.apple.com/feedback/

  • How can I increase the font size of my email when I print it out, it is printing tiny

    How can I increase the font size when I print out emails, it is printing tiny size?

    In the Print dialog window, click the small reveal-button to the right of the printer's name -
    The window will expand to show additional settings (similar to 'old' Page Setup) -
    Be sure "Scale:" is set to 100% and the 'Keep apparent font size' item is checked.

  • How do I increase the font size in my email and maintain resolution.

    Hi folks. Mr Newbie is seeking some help, I hope it is relatively straight forward, thanks
    How do I increase the font size in my standard email and document views without losing resolution.  Right now my font size in email, headers and text is less than that on my iPhone, it rather defeats the point of having a 27" screen if most of it is blank and I have to sit with my nose to the screen to read email.  Thanks for your help, once you have stopped laughing.  C

    Two things you can do to easily aid with readability in Mail are as follows:
    1) Increase the size of folders in the sidebar:
    a) select "system preferences" from the Apple menu
    b) select "general settings"
    c) select small, medium or large under "sidebar icon size"
    2) Increase the text in the main body of the email (both sent and received):
    a) select "preferences" from the Mail menu
    b) select "fonts and colors"
    c) adjust font size for "message list font" and "message font".  I have noticed this works properly while in classic mode, but in regular mode the message list font doesn't appear to change size.
    Select classic mode by accessing Mail preferences and selecting the "viewing" tab.
    Another shortcut is to right click on the toolbar, then select "customize toolbar", and then drag the "smaller / bigger" buttons onto the toolbar.  Now you can decrease and increase font size as desired on the fly.

  • In previous versions of Firefox I was able increase the display size on Flickr which remained unless I altered it again. Does any one know how to do this on Firefox 4?

    Question
    In previous versions of Firefox I was able increase the display size on Flickr which remained unless I altered it again. Does any one know how to do this on Firefox 4

    Make sure that you not run Firefox in (permanent) [[Private Browsing]] mode.
    * You enter Private Browsing mode if you select: Tools > Options > Privacy > History: Firefox will: "Never Remember History"
    * To see all History and Cookie settings, choose: Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    * Uncheck: [ ] "Permanent Private Browsing mode"
    You can use one of these extensions to adjust the default font size and page zoom on web pages:
    * Default FullZoom Level - https://addons.mozilla.org/firefox/addon/6965
    * NoSquint - https://addons.mozilla.org/firefox/addon/2592

  • Is there a way to increase the icon size (and the text below) without using zoom?  I am trying to help out someone who has moderate visual impairment that does not want to use zoom just to see the icons and their labels.

    Is there a way to increase the icon size (and the text below) without using zoom in iOS 7?  I am trying to help out someone who has moderate visual impairment that does not want to use zoom just to see the icons and their labels.

    Hello Apple.
    It seems you have gone to great lengths to improve accessibility in many areas of the iPad. Why was this obvious problem with icon text size missed?  (It's not with the Mac.). And for so long too.
    Do you employ people with actual accessibility problems to help you do UI design?
    I think too, that some buttons are too close for people who might have motor control problems.
    I love my iPad but I fear as I age, the iPad might not keep up with me.

  • Need to Increase the Font Size of a screen field in a Dialog Screen ?

    Hi ppl,
    I have a requirement wherein i need to increase the font size of one field on a dialog screen .
    i was going through the threads and found this which has beautiful example given by vijay
    Increase text size in Screen
    But I'm facing a problem in implementing it since the value in the field (of which the font size needs to be increased) depends on a nother field filled by user at runtime only.
    Can anyone gimme some suggestions or alternative way to solve my problem
    Thanks
    Sachin Soni

    Hi Sachin,
    There is not way to change the font style.
    But you can add ur own text through icons or graphics.
    Create your own graphics or icons and include it in ur module pool.
    Or,
    Goto the Layout Editor of your Screen.
    Double click on the text field .. Double clk the text fild, and from the Botton right u can see an arrow icon -> click on that -> will open a Popup -> in that set Area Title to TRUE.
    Hope this solves your problem.
    Thanks & Regards,
    Tarun Gambhir

  • How do I increase the font size of a large document?

    Whenever I try to increase the font size of a large document, the text boxes cross their boundaries and mix with each other, or partly disappear at the end of every page. Do I really have to adjunst every text bos in the document or is there a faster way? Im having this issue with adobe acrobat 11 pro

    This is not a feasible thing to do. Editing a PDF is a desperate last resort for so many reasons.
    Whatever you need to solve, you are unlikely  to solve it in Acrobat. Probably best to export text and remake it.

Maybe you are looking for