| PLEX86 | ||
|
Stack Size for aHi, How can i know the default Stack Size allocated to a Thread in Red Hat Linux 9.0 box. The "ulimit -a" command says that the stack size is unlimited , but am eager to know the value . But why do i need this ??? This was the question i posted in a Java Programmer group : "Got out of memory error while trying to run my application with a HeapSize of 600mx in a Linux ( RH 9.0) box with 1 GB Ram size The error obtained is : "bane: Stack size too small Use java -Xss to increase default stack size " . What does this error denote ? Have any one faced this . The same application worked fine when the Heap size was reduced to 300mx . The application creates 150 native threads and uses jdk 1.4.2. However the application worked fine in another linux box with the same configuration with 600mx as heap size. Was not able to find out any reason for this ??? . It will be really helpful if you can throw some insights over this problem ..... . Thanks in advance for the response. " The answer i recieved for this made me to sail and reach this group : I have a question On Wed, 22 Feb 2006 23:39:52 -0800, binkylin Now comes the "canned" speech about what's... "This is all normal. F.ex. different linux distributions have different settings for system resources, e.g files open, max shared memory, max threads-processes, temporary space etc. Red Hat should be tuned for enterprise use, so the fact that you experience this on red hat is a bit surprising. But in any case you need to try and figure out what limit on the system is hitting the roof, and then reconfigure that limit. So when using a heap size of 300MB your are within the systems limits, but when setting it to 600MB the limit is reached. Posible solution could be the size of swap space or thetmp parbreastion. Try asking a linux group for further hints and tools. " It would be really helpful if you could give me suggestion for my original problem too?? Thanks in advance. xfce trouble after startx on my laptop -- if i use kdm, xfce (xfce4) starts up nice. it's totally GUI-windowy and pretty, there's a mouse flashing for the splash screen, all comes up great. if i... Regards JK
|
||||
Linux groups from Newsgroups The #1 Usenet Provider on the Internet
|
||||