Solved

Error using wsadmin remotely via powershell

Posted on 2010-09-02
10
1,545 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
> I can run other commands remotely

  What kind of commands?
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 41

Expert Comment

by:HonorGod
Comment Utility
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
Comment Utility
No luck, same error.
0
 
LVL 41

Accepted Solution

by:
HonorGod earned 500 total points
Comment Utility
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
Comment Utility
Going to manage this with scheduled tasks instead. Thanks
0
 
LVL 41

Expert Comment

by:HonorGod
Comment Utility
Thanks for the grade & points.

Good luck and have a great day.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This script checks a path to see if a folder exists. If the folder does exist you will get output "The folder has previously been created. No action taken" If not it will create the folder. Then adds one user modify permission to the folder. It …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

772 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

10 Experts available now in Live!

Get 1:1 Help Now