Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6255225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T14:19:31+00:00 2026-05-24T14:19:31+00:00

I want to raise the maximum number of threads in the default work manager’s

  • 0

I want to raise the maximum number of threads in the default work manager’s thread pool using a wsadmin (Jython) script. What is the best approach?

I can’t seem to find documentation of a fine-grained control that would let me modify just this property. The closest I can find to what I want is AdminTask.applyConfigProperties, which requires passing a file. The documentation explains that if you want to modify an existing property, you must extract the existing properties file, edit it in an editor, and then pass the edited file to applyConfigProperties.

I want to avoid the manual step of extracting the existing properties file and editing it. The scripts needs to run completely unattended. In fact, I’d prefer to not use a file at all, but just set the property to a value directly in the script.

Something like the following pseudo-code:

defaultwmId = AdminConfig.getid("wm/default")
AdminTask.setProperty(defaultwmId, ['-propertyName', maxThreads, '-propertyValue', 20])
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T14:19:33+00:00Added an answer on May 24, 2026 at 2:19 pm

    The following represents a fairly simplistic wsadmin approach to updating the max threads on the default work managers:

    workManagers = AdminConfig.getid("/WorkManagerInfo:DefaultWorkManager/").splitlines()
    for workManager in workManagers :
      AdminConfig.modify(workManager, '[[maxThreads "20"]]')
    AdminConfig.save()
    

    Note that the first line will retrieve all of the default work managers across all scopes, so if you want to only choose one (for example, if you only one to modify a particular application server or cluster’s work manager properties), you will need to refine the containment path further. Also, you may need to synchronize the nodes and restart the modified servers in order for the property to be applied at runtime.

    More information on the use of the AdminConfig scripting object can be found in the WAS InfoCenter:
    http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/rxml_adminconfig1.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a game using libgdx framework. I want to raise a dialogue
I want to raise an event that shows up in the system event viewer
-I want to raise an event whenever method showmessage is called.I want to catch
I want to raise an event from a .NET class, and receive this event
$Hello_all, a simple question, in a project I want to raise the property changed
I want to do something like this: class Dictable: def dict(self): raise NotImplementedError class
I want to validate a condition before doing the next step, but only raise
I don't want multiple windows, each with its own UI thread, nor events raised
i want to raise application.idle event manually in a Loop. is it possible in
The Problem I'm writing a Cocoa application and I want to raise exceptions that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.