Hi Mathew,
Here is my problem.
Linux (red hat at least) has limits on the number of threads that can be
created by
a process ... apparently this is 1024 threads.
I have a test program called TestThreads. When I run this program it creates
threads
, each thread sleeps 60 seconds and then finishes. I cannot get past a
thread count of
1024 . I will be needing a lot more threads than that for my application to
work properly.
On windows I can run the program from the console and it goes up to 7988
threads so it looks
to my boss like linux can't scale :( this is not the view of Linux that I
want to
perpetuate.
The problem IMHO is that the glib library has been compiled with the
#define PTHREAD_THREADS_MAX 1024
in the file
./linuxthreads/sysdeps/unix/sysv/linux/bits/local_lim.h
I have modified this and uped the number to 8192.
#define PTHREAD_THREADS_MAX 8192
I have then configured it with
./configure --enable-add-ons --prefix=/usr
and did a make and make install ... (this took about 2 hours to run)
I then tried out my thread testing program again.
Same thing... it gets to 1018 threads and then produces an out of memory
error.
I can run 4 instances of it at the same time in four different consoles and
I get
console 1 664
console 2 1018
console 3 1017
console 4 917
This is wierd ... anyone got any ideas ?
--B
PS: I've been in google hell for a couple of days so no links to volcano ...
been there
-----Original Message-----
From: Matthew French [mailto:mfrench42 at yahoo.co.uk]
Sent: Friday, May 03, 2002 2:20 PM
To: Hunt, Bryan
Subject: Re: [ILUG] anyone have any experience of java thread problems
on linux ?
Bryan Hunt asked:
> Anyone have any experience of java thread problems on linux ?
> Specifically problems with compiling glibc from source on redhat 73
platform
Could you give more information? Which java? What is the error message?
Although I cannot say I have had to recompile java or glibc very recently...
- Matthew
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!