The maximum number of threads that can be created on a machine depends on
your available memory and workload.
1) On what operating system are you running the STAX service on?
2) What version of STAF are you running the STAX service with? e.g. STAF
staxMachine MISC VERSION. Be sure you're running with STAF V3.2.3 or
later if your operating system is Linux, preferably the current version of
STAF, STAF V3.3.2,
3) Provide the line(s) in your STAF.cfg file where you are registering the
STAX service.
4) What is the exact error message that you are seeing?
5) Are there any errors in the STAX JVM log? (e.g.
/usr/local/staf/data/STAF/lang/java/jvm/<JVMName>/JVMLog.1 (where
<JVMName> is STAFJVM1 or something else if you used the JVMName option
when registering the STAX service in your STAF.cfg file.
In STAF V3.2.3, we decreased default thread stack size for STAF threads on
Linux to help resolve OutOfMemory issues when STAF creates a new thread
(Bug #1688297). We decreased the stack size for Linux to 4M because on
new versions of Linux the default stack size for Linux pthreads is quite
large (e.g. 8M or 10M) and if you create a lot of threads (e.g. by
submitting lots of STAF commands simultaneoulsy and/or recieving process
completion notifications simultaneously), you can eat up a lot of memory
as virtual memory used is determined by:
managed heap + native heap + (number of threads * thread stack size)
Depending on your available memory and workload, you could set it lower.
For example, the following sets the STAF thread stack size to 2M. Note
that you have to restart STAFProc with that environment variable set:
export STAF_THREAD_STACK_SIZE=2048
See
http://sourceforge.net/tracker/index.php?func=detail&aid=1688297&group_id=33142&atid=407381
for more information on this bug fix.
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
Alkesh Shah <salke...@yahoo.com>
01/21/2009 02:20 PM
To
staf-users@lists.sourceforge.net
cc
Subject
[staf-users] Max number of STAX threads
Hi,
I am using STAX 3.3.1 and wanted to execute staf commands parallely. I
wanted to know the maximum number of threads that can be created for
executing the staf commands.
I have been receiving socket timeout exceptions in STAF beyond approx. 250
threads.
Thanks in advance for the help.
Regards,
Alkesh Shah
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users