Solved

Error using wsadmin remotely via powershell

Posted on 2010-09-02
10
1,555 Views
Last Modified: 2012-08-13
I am attempting to run wsadmin.bat remotely via WiinRM's functionality in powershell.
When in a remote session, I try and run the command:
.\wsadmin.bat -user test -password test1 -lang jython
and I get the error message below. I have no idea where to even being to troubleshoot this, does anybody else?

JVMJ9VM015W Initialization error for library j9gc23(5): Failed to allocate default memory space
    + CategoryInfo          : NotSpecified: (JVMJ9VM015W Ini...lt memory space:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

Could not create the Java virtual machine.

0
Comment
Question by:rwskas
  • 6
  • 4
10 Comments
 
LVL 41

Expert Comment

by:HonorGod
ID: 33590081
What is the current working directory?

I suggest that instead of using:

.\wsadmin.bat ...

that you fully qualify it

C:\IBM\WebSphere\AppServer\bin\wsadmin.bat ...
0
 
LVL 6

Author Comment

by:rwskas
ID: 33590105
Working Directory is D:\
Fully qualified name produces same results - its actually what I normally use, just used .\ so I didnt have to type it all out.
0
 
LVL 41

Expert Comment

by:HonorGod
ID: 33590275
When you remotely execute the wsadmin command, do you specify a userid / password to be used to perform the connection?  Might it be executing, or trying to execute wsadmin without having sufficient permission/privileges?
0
 
LVL 6

Author Comment

by:rwskas
ID: 33590291
I can run other commands remotely to this server with out any errors, as the account used to create and use the remote connection is local admin for the server.
0
 
LVL 41

Expert Comment

by:HonorGod
ID: 33591291
> I can run other commands remotely

  What kind of commands?
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 41

Expert Comment

by:HonorGod
ID: 33591315
Are these other kinds of commands interactive?

The example you show in your question attempts to start an interactive wsadmin session.

Instead, try something like:

.\wsadmin.bat -user test -password test1 -lang jython -c "print AdminConfig.list('Server')"

0
 
LVL 6

Author Comment

by:rwskas
ID: 33591342
No luck, same error.
0
 
LVL 41

Accepted Solution

by:
HonorGod earned 500 total points
ID: 33592824
When you execute it locally, does it succeed?

What version of WebSphere is being used?

What's the "Installed Product" section of the following command look like?

  D:\IBM\WebSphere\AppServer\bin\versionInfo

What profiles do you have defined?

What does the output of this command look like?

  D:\IBM\WebSphere\AppServer\bin\manageprofiles -listProfiles

What is the default profile?

What does the output of this command look like?

  D:\IBM\WebSphere\AppServer\bin\manageprofiles -getDefaultName

Is the default profile active?

What does the output of this command look like?

  D:\IBM\WebSphere\AppServer\bin\serverStatus -all

0
 
LVL 6

Author Closing Comment

by:rwskas
ID: 33718530
Going to manage this with scheduled tasks instead. Thanks
0
 
LVL 41

Expert Comment

by:HonorGod
ID: 33719155
Thanks for the grade & points.

Good luck and have a great day.
0

Featured Post

[Webinar] Disaster Recovery and Cloud Management

Learn from Unigma and CloudBerry industry veterans which providers are best for certain use cases and how to lower cloud costs, how to grow your Managed Services practice in IaaS clouds, and how to utilize public cloud for Disaster Recovery

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This video teaches viewers about errors in exception handling.

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now