Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Error using wsadmin remotely via powershell

Posted on 2010-09-02
10
Medium Priority
?
1,630 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

 
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

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

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

This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
The Nano Server Image Builder helps you create a custom Nano Server image and bootable USB media with the aid of a graphical interface. Based on the inputs you provide, it generates images for deployment and creates reusable PowerShell scripts that …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
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…
Suggested Courses

688 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