Increase system concurrency by setting WebLogic to set the number of threads

Source: Internet
Author: User

Using Weblogic version: Weblogic 11g (10.3.6)

There are two ways to set the number of threads for WebLogic

First, by starting the parameter setting:

-dweblogic.threadpool.minpoolsize=1000-dweblogic.threadpool.maxpoolsize=1000

Can be added under the setdomainenv.sh file java_options;

The second, through the config file configuration:

<server> <name>AdminServer</name> <self-tuning-thread-pool-size-min>1000</ Self-tuning-thread-pool-size-min> <self-tuning-thread-pool-size-max>1000</ Self-tuning-thread-pool-size-max></server>


The following error may occur under Linux when Setup should be restarted directly in the Windows environment:

Attempting to allocate 4g bytesthere is insufficient native memory  for the javaruntime environment to continue. Possible reasons:  the system is out of physical ram or  swap space  in 32 bit mode, the process size limit  was hitPossible solutions:  Reduce memory load on the  System  increase physical memory or swap space  check if  swap backing store is full  use 64 bit java on a  64 bit OS  Decrease Java heap size  (-XMX/-XMS)    decrease number of java threads  decrease java thread stack  sizes  (-XSS)   Disable compressed references (-xxcompressedrefs=false) Java.lang.outofmemoryerror: resource temporarily unavailable in  tsStartJavaThread  (lifecycle.c:1097). Attempting to allocate 4g bytesthere is insufficient native memory  for the javaruntime environment to continue. Possible reasons:  the system is out of physical ram or  swap space  in 32 bit mode, the process size limit  was hitPossible solutions:  Reduce memory load on the  System  increase physical memory or swap space  check if  swap backing store is full  use 64 bit java on a  64 bit OS  Decrease Java heap size  (-XMX/-XMS)    Decrease number of Java threads  Decrease Java thread stack sizes  (-XSS)    Disable compressed references  (-xxcompressedrefs=false)

The problem with this may be due to the fact that the Linux system restricts the user's default thread count by:

Ulimit-a

command to view:

core file size           (blocks, -c)   0data seg size            (kbytes, -d)  unlimitedscheduling priority               (-E)  0file size                 (blocks, -f)  unlimitedpending signals                   (-i)  515223max locked memory         (kbytes, -l)  64max memory size           (kbytes, -m)  unlimitedopen files                        (- N)  1024pipe size             (512 bytes, -p)  8POSIX  message queues      (BYTES,&NBSP;-Q)  819200real-time priority                (-R)  0stack size                (kbytes, -s)   10240cpu time                ( SECONDS,&NBSP;-T)  unlimitedmax user processes                (-u)  1024virtual memory            (KBYTES,&NBSP;-V)  unlimitedfile locks                        (-X)   Unlimited

which

MAX User Processes (-u) 1024

Represents the maximum number of threads allowed for the current system, you can set this parameter to a larger size.

Ulimit-u 5000

Set the maximum allowable number of threads for the current system user, only valid for this session, and if you want to permanently take effect, you can modify:

$ cat/etc/security/limits.d/90-nproc.conf # Default limit for number of user ' s processes to prevent# accidental fork bomb s.# See RHBZ #432903 for reasoning.* soft nproc 1024

Just change the 1024 to the value you need, and the system needs to be restarted.

Increase system concurrency by setting WebLogic to set the number of threads

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.