Solved

Error using wsadmin remotely via powershell

Posted on 2010-09-02
10
1,566 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
Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
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
 
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

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.

Question has a verified solution.

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

Synchronize a new Active Directory domain with an existing Office 365 tenant
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 learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

770 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