Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Error using wsadmin remotely via powershell

Posted on 2010-09-02
10
Medium Priority
?
1,660 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
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this post we will learn different types of Android Layout and some basics of an Android App.
In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
This video teaches viewers about errors in exception handling.
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.
Suggested Courses

877 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