Are there any memory restrictions when using Invoke-Command?

Hi, I'm using the Invoke-PSCommandSample workbook to run a batch file inside a VM.
The batch file inside the VM runs a Java program.
The batch file works fine, when I run it manually in the VM.
However, when I use the Invoke-PSCommandSample workbook to run the batch file, I get the following error:
Error occurred during initialization of VM
Could not reserve enough space for object heap
errorlevel=1
Press any key to continue . . .
Does anybody know if there are any memory restrictions when invoking commands inside a VM via runbook?
Thanks in advance.

Hi Joe, I'll give some more background information. I'm doing load testing with JMeter in Azure and I want to automate the task. This is my runbook:
workflow Invoke-JMeter {
$Cmd = "& 'C:\Program Files (x86)\apache-jmeter-2.11\bin\jmeter-runbook.bat'"
$Cred = Get-AutomationPSCredential -Name "[email protected]"
Invoke-PSCommandSample -AzureSubscriptionName "mysubscription" -ServiceName "myservice" -VMName "mymachine" -VMCredentialName "myuser" -PSCommand $Cmd -AzureOrgIdCredential $Cred
This is my batch file inside the VM:
set JAVA_HOME=C:\Program Files\Java\jdk1.7.0_71
set PATH=%JAVA_HOME%\bin;%PATH%
%COMSPEC% /c "%~dp0jmeter.bat" -n -t build-web-test-plan.jmx -l build-web-test-plan.jtl -j build-web-test-plan.log
Initially I tried to run JMeter with "-Xms2048m -Xmx2048m". As that didn't work, I lowered the memory allocation but even with "-Xms128m -Xmx128m" it does not work. I have tried with local PowerShell ISE as you suggested, but I'm
running into certification issues. I'm currently have a look at this. Here's my local script:
Add-AzureAccount
Select-AzureSubscription -SubscriptionName "mysubscription"
$Uri = Get-AzureWinRMUri -ServiceName "myservice" -Name "mymachine"
$Credential = Get-Credential
$Cmd = "& 'C:\Program Files (x86)\apache-jmeter-2.11\bin\jmeter-runbook.bat'"
Invoke-command -ConnectionUri $Uri -credential $Credential -ScriptBlock {
Invoke-Expression $Args[0]
} -Args $Cmd
With this, I get the following error (sorry, it is in German):
[myservice.cloudapp.net] Beim Verbinden mit dem Remoteserver "myservice.cloudapp.net" ist folgender Fehler
aufgetreten: Das Serverzertifikat auf dem Zielcomputer (myservice.cloudapp.net:666) enthält die folgenden
Fehler:
Das SSL-Zertifikat ist von einer unbekannten Zertifizierungsstelle signiert. Weitere Informationen finden Sie im
Hilfethema "about_Remote_Troubleshooting".
    + CategoryInfo          : OpenError: (myservice.cloudapp.net:String) [], PSRemotingTransportException
    + FullyQualifiedErrorId : 12175,PSSessionStateBroken

Similar Messages

  • Are there any known issues when using PSE 13 after installing Apple's recent 10.10.3 Combo update for Yosemite?

    I've had Yosemite for some time and bought/installed PSE 13 afterwards.
    In the last few days I upgraded to Yosemite 10.10.3.
    As a PSE 13 novice I've been working my way through "Adobe Photoshop Elements 13 - Classroom in a Book". Working through the exercises I've found my iMac is sometimes taking longer to process the functions I'm using than prior ro the 10.10.3 upgrade. E.g., using the Healing Brush tools, Straighten Tool etc.
    I've struggled with Apple's upgrade and had to re-install my machine from a previous Time Machine Backup and so I was wondering:-
    Are there any known issues with PSE 13 post 10.10.3 upgrade?
    Are there things I should be concerned about in the future before accepting an OS X upgrade?
    Thanks,
    Andy

    No, no known issues. However it's a good idea to always delete preferences after OS X system updates.

  • Are there any known conflicts when Norton Antivirus is loaded into mavericks?

    Are there any known conflicts when Norton Antivirus is loaded onto a MacBook Pro running mavericks?

    If you installed it, uninstall it.
    One or more of the following support documents may be applicable:
    Uninstall Norton Internet Security for Mac
    Removing Symantec programs for Macintosh by using the RemoveSymantecMacFiles removal utility
    RemoveSymantecMacFiles

  • Are there any libraries can be used to generate Type 1 font postscript file

    I am trying to create a Type 1 font postscript file. But I found it is hard to find the library to generate the Type 1 font postscript file. I just found a library named iText which can create the Type 1 font PDF file.
    Are there any libraries can be used to generate Type 1 font postscript file?
    Thanks!

    I don't see much benefit with the current ODI adaptors for planning if it is an EPMA type planning application.
    They have been specifically designed to work with classic planning applications.
    It certainly is possible to load into EPMA interface tables using ODI though there are no direct adaptors and it takes quite a bit of effect to get them into the correct format.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Are there any know issues with using multiple (2) apple tv's in the same household??

    I'm thinking of getting a second Apple TV. Are there any known issues with using multiple (2) apple tv's in the same household? Thank you in advance.

    No, shouldn't have any problems

  • Are there any performance concerns when referencing an image located in a c

    Are there any performance concerns when referencing an image located in a central location (example application server)?

    Hi
    Should not be an issue at all - we are only going to be limited by the network bandwidth
    Regards
    Tim
    http://blogs.oracle.com/xmlpublisher

  • Are there any known issues when updating to iLife 9.12

    I am getting a notice to update iLife to 9.12.  Are there any known issue with this release?

    Yes. There are issues with syncing to iOS devices. These are fixed in 9.1.3, so update to 9.1.2 an then to 9.1.3
    Regards
    TD

  • Are there any Client/Server Application (using sockets) design patterns?

    Hi,
    The title of the post nearly says it all. I am searching for different design patterns related with the development of a client/server application. I understand that there must be any different ways on how a client/server application can be developed.
    Regards,
    Sim085
    Disclaimer:
    When I enter in the Socket forum on this site I recieve this message "Thank you for any participation in this forum. Due to a lack of relevant activity, we have decided to archive this forum on June 16, 2006. For future posts on this topic, we suggest you use the Networking forum" and I am not allowed to create a new post! However I can see posts done yesterday! All i did is add the forum in 'my forums'. Does this happen to you people as well?

    Hi Sim085...How are you?
    So look this:
    http://forum.java.sun.com/thread.jspa?threadID=5148926&tstart=75
    I don�t know if is what you want...but I hope in this^^
    Ok man...If you have one example for help you is better.
    [ ]

  • Are there any known issues concerning using DIGEST-MD5 SASL authentication with iPlanet Directory Server 5.0 on Windows NT 4.0?

    I am developing support for the DIGEST-MD5 sasl mechnism on a c-ldap client. I am using the evaluation version of the iPlanet Directory Server 5.0 which lists DIGEST-MD5 as a supported SASL mechanism. The server is running on NT 4.0 After installing the Directory Server with the test database, a changed the passwordStorageScheme from the default of SSHA to clear text. I then added my test user. When I run my test I always get back a resultCode of 49 (invalidCredentials). The digest-challenge I receive from the server and my digest-response are shown below. I have satisfied myself that the calculation of the response directive in the digest response is correct. Does anyone see any problems in the digest response or have any other suggestions? Is there a known problem with the iPlanet Directory Server 5.0?
    digest-challenge:
    realm="BGB2.ndp.provo.novell.com",nonce="Ed8UPLXsWaC6CN",qop="auth",algorithm=md5-sess,charset=utf-8
    digest-response:
    username="uid=bgbrown,ou=people,dc=siroe,dc=com",realm="BGB2.ndp.provo.novell.com",cnonce="A9IuPJKr30RiwL",nc=00000001,qop=auth,digest-uri="ldap/BGB2.ndp.provo.novell.com",response=97061205298e5ebaf206c8ac3598fdce,charset=utf-8,nonce="Ed8UPLXsWaC6CN"

    Found the answer. When the username is an LDAP DN it needs to be proceeded by "dn:".
    example: username="dn:uid=bgbrown,ou=people,dc=siroe,dc=com"
    The server also accepts a simple uid value.
    example: username="bgbrown"

  • Are there any real discounts when signing on for a second year?

    The reason I ask is I've been paying around £27 a month for my first year and I was going to cancel as obviously the price is about to jump for me and it's just a little too much for our current budget. However when I clicked the button a message popped up suggesting I speak to a CS representative to see if I qualified for any special offers. The conversation went like this...
    You are now chatting with Narender. To ensure we stay connected throughout our interaction , please don't click on the 'x' in the chat window. Doing so will disconnect our chat session.
    Narender: Hello! Welcome to Adobe Customer Service.
    Narender: Hi Lisa.
    Lisa: Hello
    Narender: How may I help you today?
    Lisa: My Creative Cloud membership is about to expire and I was wondering if I qualify for any special offers or discounts as I don't plan to renew at the higher rate currently.
    Narender: Thank you for the information.
    Narender: Please stay online  while I pull up your records.
    Narender: I see that the payment has not gone through in this case I request you to update the card details.
    Narender: Sorry for the typo.
    Lisa: No sorry I think you misunderstand, my membership to creative cloud expires in a few days and I plan to cancel. However when I click to cancel I got the message "We'd hate to see you go! Did you know you might be qualified for special offers to continue your Creative Cloud membership? Discuss your options right now with an Adobe representative by live chat." So I thought I would see if there were any special offers before I cancel.
    Narender: https://creative.adobe.com/plans
    Narender: Please use the link for the purchase information.
    So not quite what I was asking. Rather than wasting more time I thought I'd ask if anyone knows if there's anyway of getting a discount for a second year or if there are any offers? I think that message has probably got my hopes up for nothing but wanted to double check.

    As the £27, was an introductory offer. Upon the completion of one year, the price will change to the normal creative cloud cost which is at £46.88. However if you have the previous versions of the creative suites like CS 3, 4, 5, 5.5 or the CS 6. You can avail the offer at £27.34 per month incl. VAT. However this Requires annual commitment; billed monthly.

  • Are there any updates on when Apple will let us delete purchased iBooks permanently from iCloud?

    On my Mac I am not able to hide purchased books.   I want to delete some permanently to free up space and because I will never read them again.   I am not purchasing any more ibooks until we can have the option to delete.   I have read lots of blogs but hoping to find someone that knows what are when Apple intends to address.   Lots of unhappy users out there.

    Thank you Demo for the speedy reply. Your solution worked great, the problem is fixed.
    Here is the way I was able to fix this problem so other people with this problem may benefit from this as a way to give back to the support forum community.
    This problem seems to only affect people using iCloud as their main syncing device. If you still sync to you computer and do not use iCloud, well you shouldn't have this problem anyways :)
    Connect your iPad to your Mac and sync with iTunes. In my case since I use iCloud to sync, be careful of what you let your Mac/PC sync with your iPad, it has a tendency to remove all data from a category and replace it with what you have stored on the computer if you don't disable sync on each of the tabs.
    Next in the books tab tell it to remove all book data from your iPad and those stuck downloads should be gone!
    Now just go to the iBooks store on your iPad and re-download the books from iCloud.

  • Are there any bios conflicts with using a 7800GT/ NF4 SLi 7100 mobo?

    Simple question, does anyone know of any problems with runing a 7800GT with a MSI NF4 SLi mobo/bios version-V.6.00PG-V9.0 031505(W7100NZ1)?, Thanks!

    for anyone who reads this thread although my new 7800gt/co are non MSI, I wanted to list a stern warning to beware of what bios these cards are shipping with, I have never had so many problem swith a set of cards in my entire life, the vendors are playing russian roulette with the delta clock settings in the bios, effectively makeing the cards auto throttle  40mhz  when dettecting a high performance app running, which causes a lot of problem when you have already overclocked the card manually without taking this auto +40mhz into effect, I finally got some resolution with a revised bios release, but be on the look out for this fluffing scheme the are doing with this cards.

  • Are there any connection settings for using rtsp:...

    In my effort to get access in 'YouTube" steaming videos, I tried to find the scope available  in Nokia 3110C handset. After going through the Menu icons, I identified one Menu Item in the path : MAIN MANU>MEDIA>MEDIA PLAYER>GO TO ADDRESS. It is...rtsp://. The help message states ...'Lets you manually enter Web Address...'. I entered : ' rtsp//m.youtube.com. The response was a Note which reads - Check Connection  Settings... Again I followed the above path :  MAIN MANU>MEDIA>MEDIA PLAYER>STREAM SETT. I click the Stream Settings. The nesponsing note : 'No Settings found. Contact your Service  Provider'. So, from the above discussion the net  learning I got is I must have the Stream Settings to get YouTube going in my Set. My querry is : Whare those settings and what is the source in getting those settings ? I understood the rtsp (Real Time Stream Protocol) is more versatile than HTTP and MMS in getting Streaming data (numerical, photograph/radio). Please suggest.

    I experienced same problem with my 3110c handset. At first the STREAMING SETT was shadowed dark with a restriction to get access there. Later I got contact with BSNL (my SP). After downloading the settings I discovered that the shadowy patch over Streaming Sett. has gone. It  now shows an entry ..."bsnlstream."
    So far an attempt  was made to activate the Youtube, a message reminds me that the software of 3110C is not supporting such application.

  • Are there any costs related to using Genius on itunes?

    hey i was thinking of setting up genius and i wanted to make sure that there werent going to be any charges with it... so i was just wondering if there was?

    I just now set it up myself to verify. Nowhere does it mention fees. Just click on the Genius menu in the left-hand window of iTunes to get started.

  • Are there any drivers available to use USB mass storage on Windows 98?

    I have a fairly expensive piece of equipment that still operates on windows '98.  It uses specifically created files to complete jobs that must be loaded onto the computer.  I would like to be able to send new job files out to the machine's operator in the field via e-mail so they can download them onto the computer from the Blackberry using the mass storage mode (I have other machines operating on windows 2000 that I am currently doing this with).  The machine currently is using a USB operated card reader and we have to physically move the files from the office computer to the field computer and it is often more than 60 miles away.  Being able to use the Blackberry would be an incredible time and fuel saver. Upgrading the operating system to 2000 is not an option on this piece of equipment.
    Any help on where to find a driver for windows 98?  I have searched all over the net to no avail....

    Hi Plowboy and welcome to the BlackBerry Support Community Forums!
    Unfortunately RIM does not have any drivers supported by Windows 98.
    Thanks.
    -CptS
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

Maybe you are looking for

  • Help~~:'MD_SALES_ORDER_STATUS_REPORT' filter rule for MD04?

    As you know we can use function 'MD_SALES_ORDER_STATUS_REPORT' to relate the (PR PR PlanOrder Prorder) with Sales Order. But when the screen go to MD04,the number of (PR PR PlanOrder Prorder) showed is less than the function 'MD_SALES_ORDER_STATUS_RE

  • How do you change the color of a jpeg or tiff file (from b/w to color)?

    I recently was given Creative Suite 5 so I can create ads, flyers, etc.  I am trying to change our logo from a black and white to PMS 541 Blue.  I was able to change the text color, but for some reason it will not stick to the images.  Most of the gr

  • Loadmoive problem with timeline

    Hi, My actionscript skills are very basic, as I only use Flash from time to time so any help would be gratefully received. I'm trying to load some jpeg files into movies which start at different points along a timeline within another movie and have c

  • IPhone 3g Recovery Mode help

    My iPhone is stuck in Recovery Mode. It goes all the way to 100% firmware restore and then stops and gives me Error 1013, no matter what I do. I have followed all the tips from support dealing with this error. I have moved USB ports, computers, I hav

  • Window title and borders for Render Window (3D Picture Control)

    Hi all, some more questions on the 3D picture control. I use the external render window, because in the solarsystem.vi demo, the 3d picture control appears to be very slow. The render window is much faster there. (I haven't tried it for my applicatio