Multiple remote debugger connections from JDev

Hello,
I'm running JDev Studio Edition Version 11.1.2.3.0
I need to debug an application running on a 2 node WLS Cluster. I have the two servers running in debug mode listening on different hosts/ports.
In JDev I click the debug button twice and open a connection to each server in turn, however I suspect that the last connection made may be the only one that's active?
Can somebody please clarify whether it's possible to open multiple remote debugger connections in JDev?
Many thanks.

Hello,
I'm running JDev Studio Edition Version 11.1.2.3.0
I need to debug an application running on a 2 node WLS Cluster. I have the two servers running in debug mode listening on different hosts/ports.
In JDev I click the debug button twice and open a connection to each server in turn, however I suspect that the last connection made may be the only one that's active?
Can somebody please clarify whether it's possible to open multiple remote debugger connections in JDev?
Many thanks.

Similar Messages

  • When I started my Mac the screen was white with the Apple logo and power motion icon running.  I attempted to turn off Mac then a message stating "Debugger called:  Button SCI . Also "Waiting for remote debugger connection."  What is my next step?

    When I started my Mac the screen was white with the Apple logo and power motion icon running.  I attempted to turn off Mac then a message stating "Debugger called:  <Button SCI>. Also "Waiting for remote debugger connection."  What is my next step?

    Hi , and a warm welcome to the forums!
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.
    If 10.7.0 or later...
    Bootup holding CMD+r, or the Option/alt key to boot from the Restore partition & use Disk Utility from there to Repair the Disk, then Repair Permissions.
    And sorry to report that OSX is more Widows like than ever, but….
    If that doesn't help Reinstall the OS.

  • Error Creating Application Server 10.1.3.1 connection from JDev 10.1.3.1

    Hi All,
    I have installed OAS 10.1.3 on Linux RH ES 4 and it is running.
    But I get error when trying to create Application Server Connection from JDev 10.1.3.1. This is our first time with full version OAS, pls help..
    Below is what I did :
    On Connection Tab :
    Connect To : Single Instance
    HostName : Linux2
    OPMN Port : 6003
    OC4J Instance Name : appserver
    When I do Test Connection I get this error :
    Error getting OC4J Process for: opmn-appserver+oc4j-linux2.sas.co.id-6003-default:
    Error connecting to OPMN (is it running?): Connection refused: connect
    I have check with OPMN status on the OAS Server, it is running.
    What is wrong here ?
    Thank you for your help,
    xtanto

    Hi Xanto,
    I assume it does work because but I could not get it to work. It may have been my inexperience with the connection settings to the server. There seemed to be a number of methods of deployment and it was unclear what was needed.
    Also, when i used the Enterprise Server Control I could see the deployment crashing with out of memory errors.
    The Enterprise Server Console link can be found on the home page for the AS eg:
    http://your-server.com:7777/
    Both the server port and oc4jadmin password would have been specified during the install of the 10G AS. The ESC is also needed for configuring security providers and settings for the OC4J.
    If you find you are having memory problems this is the memory configuration fix from the middleware forums:
    10.1.3 Apps Server java.lang.OutOfMemoryError: PermGen space
    cheers,
    Brenden

  • Discussion Server connection from Jdev

    Hi,
    I am using jdev version 11.1.1.6.
    I am able to connect to discussion server from browser. But when I am creating a connection from Jdev, it says Failed to verify connection.
    Can you please suggest how to make successful connection to the discussion server from jdev?
    Thanks for reply.
    Rohan

    I'm getting the same error and have found the following in my server logs:
    05/11/02 19:27:40 Internal error raised trying to instantiate web-application
    java.lang.InstantiationException: No application named 'hw_services' found in the server
    It seems the OC4J Server is not starting up properly. I'm running the lastest patch version on a OracleAS midtier. Any help would be greatly appreciated!

  • Can 1 instance of Windows 8.1 ENTERPRISE host multiple Remote Desktop connections?

    I am shopping for the components for building a machine with fair, high-performance hardware. I have Windows 8.1 Professional. I wanted to know if either Windows 8.1 Professional or Windows 8.1 Enterprise can support multiple remote connections
    from users outside the local network. For example, my brother is based in San Diego, CA and has an underpowered laptop. Is there any way to make a remote connection over that much distance, from San Diego to Northern Virginia, from a RDP client running Windows
    8.1 Professional to a RDP "server" Windows 8.1 Professional/Enterprise machine, and run a modern, single- or multiplayer- game over smoothly that connection? At the very least, is it possible to run common
    apps (e.g. Microsoft Office 2013 IE 11, Adobe Acrobat XI) smoothly on a Windows 8.1 Pro RDP client connected to a Windows 8.1 RDP "server" located 2250+ miles away?
    Would upgrading my installation from Professional to Enterprise improve the responsiveness and display quality for my remote users?
    I know Windows Server R2 2012 has features specific for handling remote connections, but I am trying to keep a Windows 8.1 user experience. Still, if anyone can show some evidence that Windows Server 2012 R2 Remote Desktop Services (RDS)  improves display
    and responsiveness over long-distances for remote (RDS) connections, then I will shop for Windows Server 2012 R2 Standard instead. The huge drawback of Windows Server 2012 R2 Standard CALs is the enormous cost to enable 3-5
    remote connections for family, non-commercial use.
    Has anyone attempted to host long-distance remote access, non-commercially, for 3-5 connections? Has it worked well? What, in general, is required?
    T. Webster

    Hi,
    It depends on the quality of the network connection to run the software smoothly throuth RDP.  And I don't think the quality would be better if you upgrade to Windows 8.1 Enterprise.
    Windows 8.1 allow only one session of RDP, the Remote Desktop Server in Windows other than the Windows Server edition has a limitation to allow only one concurrent user per session by default, i.e. if someone remotely connects to the computer over RDP then
    whoever was logged in at that moment will be automatically logged off, even if that user is physically present at the computer. This is by design.
    Regarding more information about RDP, please take a look at the following articles:
    Remote Desktop app help
    Remote Desktop Connection: frequently asked questions
    Best regards
    Michael Shao
    TechNet Community Support

  • Trouble creating PL/SQL connection from JDEV to 10g XE

    Hi,
    I am wanting to run PL/SQL from JDev against the hr table in the 10g XE database.
    <br><br>
    In doing so I first need to create <em>my first</em> connection from inside JDev 10.1.3.2.0 to an Oracle Lite (10g) database. Both are installed on my personal PC.
    <br><br>
    So far I have been unable to create the connection; here is where I am so far in my attempts:<br><br>
    Enter the Create Database Connection Wizard<br>
    1) Entered a connection name and choose "Oracle Lite" as the connection type<br>
    2) Entered the User Name and Password for the System user of the 10g XE database<br>
    3) Entered Type 4 Driver; Host Name: localhost, JDBC Port 100, SID XE<br>
    4) I created my own library called "Oracle_Lite" with a class path that points to an olite40.jar file. I did not set the Source path or the Doc path when creating the library. Is this the correct library? <br>
    5) When clicking "Test Connection" it comes back pretty quickly with "Internal Error:Invalid Connect String"<br><br>
    After talking with a work mate I changed the JDBC Port to 1521 and now when I test the connection it starts testing and doesn't stop. The testing indicator bar continues going back and forth indefinitely. Can I assume I am at least now using the correct port?<br><br>
    Any advice or general tips on creating the connection to allow PL/SQL against the 10g XE database from JDEV would be great.

    Oracle 10g XE is not Oracle Lite. Just leave the connection type as the default - Oracle(JDBC), later use the thin JDBC driver, it should work. Continue to use port 1521 and SID as XE.

  • Remote desktop connection from windows computer to TC

    hi all,
    what I have: I have a TC 2TB, bought it three months ago.
    what I did: I have set it up at home. Using as base station for all my devices, iphone 4, ipad 2, macbook air and also other laptop. My TC is connected to ADSL modem with an ethernet cable (as expected). with port forwarding option of ADSL modem (in NAT Properties), I managed to forward any connection to TC. I have a static IP by the way.
    what I can do: from work or anywhere else other than my home network, I can connect to my static IP (via "Connect to Server" option in any mac device), it pops up a user name and password window, I login with my TC user name and decive password. In an instant my TC disk is mounted on my desktop, and I can reach all my files in it as if it is an external hard disk.
    what I cannot do: from a windows computer outside my network, I cannot connect to TC. I try to do this through "Remote Desktop Connection". Is this possible? If so how? Is this a problem related to network connection or TC settings?
    aakibar

    You cannot remote desktop into a TC..
    In fact you cannot remote access a TC from windows.. sorry.. but SMB protocol is blocked on the internet.. there are work arounds but no security.. don't do it.
    The only other protocol the TC offers is AFP.. there is no AFP file access software available for windows. You need to use a Mac.
    The best alternative is vpn.. replace your current adsl modem router with a vpn one.. eg draytek.. then you can access your home network. Since I presume when you say you have static ip you mean public IP then vpn is easy (well once setup it is).. reliable and secure.

  • Remote Desktop Connection from a Windows 8.1 laptop to a work PC using Windows 7

    Hi!
    I posted this question in the MS Community forums and they redirected me here... I searched the forums here but didn't find anything that helped with my problem. So here is my original question (posted originally here: http://answers.microsoft.com/en-us/windows/forum/windows8_1-networking/remote-desktop-connection-to-a-work-pc/5fa25045-de24-4a7c-9c8e-caf9ce17e444):
    For the past few weeks, I've been trying to set up a VPN connection to my work PC so I can work from home.
    Work PC runs on Windows 7 (I assume Pro, but I can't confirm at the moment).
    Home laptop runs on Windows 8.1 (the laptop came with Windows 8 already installed, so I assume it's the standard, or Home, edition. I manually upgraded to 8.1).
    Now, after many migraines and sleepless nights fiddling with settings, the VPN connection works. However, what prevents me from completing the connection is Remote Desktop Connection.
    Here's the error I get:
    "Remote Desktop can't find the computer "<computer name>". This might mean that "<computer name>" does not belong to the specified network. Verify the computer name and domain that you are trying to connect to."
    Note:
    - I DO have the correct computer name. I have a working connection to my work PC from my personal desktop PC (running XP), though I sometimes need to travel and a laptop is much more practical to carry around than a PC... ;)
    The VPN Connection Wizard never asked me to enter my destination PC username and password (so my work Windows credentials). Why?
    Any ideas as to why Remote Desktop doesn't want to connect?
    Any suggestions as to what I can try to fix the problem?
    Thank you for all the help!
    Julie

    Are you able to ping the remote system by name? It sounds as though you are connecting to VPN but are unable to resolve the names of the host network. A few things that I would think of:
    If the home system is not on a domain and the work system is, you may need to use the Fully Qualified Domain Name (FQDN). For example, instead of
    computer you would enter computer.domain.com.
    You may want to check if your VPN connection is configured as a default gateway, otherwise if your home and VPN network have the same IP address range you may be experiencing a conflict.
    See the instructions provided here.
    You also may want to check the DNS settings for the VPN connection to ensure that it is finding the DNS server for the remote network and thus is able to resolve the hostname.
    You may want to try connecting Remote Desktop via IP address to determine if the issue is with name resolution (DNS) or connectivity.
    Brandon
    Windows Outreach Team- IT Pro
    The Springboard Series on TechNet

  • How to reduce the number of Remote Gateway connections from one server

    Hi ,
    We have an XI 3.0 prod system which is being flooded every month end by the invoices generated in our ERP system and occupying all the gateway connections, what I see is that all the remote gateway connections are being established by our ERP server and still there are many requests waiting at the ERP server and failing.
    When we ran the same in  our test landscape, the invoices are getting transferred to XI with out any problems, the remote gateway connections are free even when the invocie Volumes transferred are the same in Prod and Test servers.
    we are not considerint to Increasing the rdisp/max_gateways as the volumes of invocies transferred are really huge and in one of the test, we observed that when 40 invocies are transferred from ERP, it occupied 40 Remote gateway connections in our XI prod
    We are looking for the option similar to our test system of transferring many requests from one connection. Is there any such specific option?
    Regards,
    Santhi Bushan.

    Dear Santhi,
    every gateway establishes only one connection to another gateway. If there are that many gateway/gateway connections, then you are probably connecting from more than one instance. You could circumvent this, if you use gateway options in the RFC destination being used, as this will force all outgoing RFC calls to go through a single gateway. This will then mean that the system has a single point of access.
    Best Regards,
    Tim

  • Problem Establishing Remote Desktop Connection from Win 7 64Bit

    I just got a new Lenovo laptop running Windows 7 Pro 64 Bit with Service Pack 1. I have installed all Win 7 Updates.
    When I try to connect to other Windows 7 Ultimate (32 bit) desktops through Remote Desktop Connection over my LAN, I get the following error:
    "An authentication error has occurred. The requested security package does not exist"
    I can connect to a Windows Small Business Server 2003 32 bit server from the laptop without problem.
    All machines are members of the same Windows domain.
    The Windows 7 machines I am trying to connect to can connect to each other without issue. NLA is set as not required on each of the desktops, though I have tried turning the NLA setting on, and received the same error.
    I have even tried running the 32 bit version of mstsc.exe and disabling the 64 bit version as discussed here:
    http://www.davidmoore.info/2009/12/02/running-32-bit-remote-desktop-connection-on-windows-64-bit/
    This had no effect either.

    Hi,
    Based on my research, please check whether the value of HKLM\SYSTEM\CurrentControlSet\Control\Lsa\Security Packages is
    kerberos
    msv1_0
    schannel
    wdigest
    tspkg
    pku2u
    If not, please correct it and see how it works.
    Note: Serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For
    more information about how to back up and restore the registry, please refer to
    How to back up and restore the registry in Windows.
    Hope this helps.
    Jeremy Wu
    TechNet Community Support

  • When I am using remote desktop connection from PC1 to PC2 and if Firefox has opened before remote connection I will see only black screen in Firefox window on PC2. Os WinXP prof Sp3. If I run FF on PC2 remotely, FF works perfectly.

    I am using an integrated feature Remote Desktop connection on WinXP without any additional software. Connection through internal LAN, so speed is very fast.

    Hi,
    You can try to toggle the various options in the '''Experience''' tab of RD.

  • Remoted DB2 connection from SAP

    Hello Experts,
    We have a requirement to connect the remote DB DB2 (No SAP) which is on I series from our SAP ECC EHP 5 system so I made a below entry in table DBCON -
    Database connection - PRMS_TEST
    DBS                            - DB4
    Username                   - SAP
    *Password                    ***********
    Connection Information - AS4_HOST=S1031993;AS4_DB_LIBRARY=RMTLIB
    but while doing the test connection, it gives the below error-
    B  Loading DB library '/usr/sap/ECD/DVEBMGS00/exe/dbdb4slib.so' ...
    M  *** ERROR => DlLoadLib()==DLENOACCESS - dlopen("/usr/sap/ECD/DVEBMGS00/exe/dbdb4slib.so") FAILED
      "/usr/sap/ECD/DVEBMGS00/exe/dbdb4slib.so: cannot open shared object file: No such file or directory"  [dlux.c       445]
    M  {root-id=000C298267DF1EE0BBC9171365715368}_{conn-id=00000000000000000000000000000000}_0
    B  *** ERROR => Couldn't load library '/usr/sap/ECD/DVEBMGS00/exe/dbdb4slib.so'
    [dbcon.c      5263]
    B  {root-id=000C298267DF1EE0BBC9171365715368}_{conn-id=00000000000000000000000000000000}_0
    B  ***LOG BYG=> could not load library for database connection PRMS_TEST  [dbds         886]
    B  ***LOG BZY=> unexpected return code 8192       calling DBDS       [dbacds       1536]
    My SAP environment is -
    SAP - ECC EHP 5
    Kernel Release 720 patch 90
    OS     - Red Hat Linux 5.5 - 64 bit
    Database - DB2 (DB6)
    Kindlly let us know if I have to put the file dbdb4slib.so in kernel directory and from where I can get this file and if my DBCON entry is correct ?
    Regards
    Saurabh Mishra

    As per note 663756, I can use the DB2 CLI driver as I am on Kernel release 720 (see below) -
    If you use a DB2 CLI driver client, the following changes are required in
    the procedure described above because the CLI driver does not support DB2
    CLP and BIND commands:
    o The CATALOG commands are omitted.
    o The target host and port must be entered in the table DBCON.
    For example, the CON ENV row looks as follows:
    DB6_DB_NAME=HOSTDB;DB6_DB_TYPE=DB2/390;DB6_DB_HOST=<hostname>;
    DB6_DB_SVCENAME=<portnum>;
    o The BIND commands must be executed by a runtime client.
    Alternatively, you can use the DB2Binder utility from Note 784264
    to bind the CLI packages.
    Is that mean that I need to only maintain the DBCON entry as all other commands are omitted for CLI driver and license file is mandatory or temp license will work ?
    As per note 784264, I checked my CLASSPATH directory and it contain the JDBC driver file -
    sapecdci1:db2ecd 58> pwd
    /db2/db2ecd/db2_software/java
    sapecdci1:db2ecd 59> ls db2*.jar
    db2dbgm.jar  db2jcc4.jar  db2jcc.jar  db2jcc_license_cu.jar  db2policy.jar  db2umplugin.jar
    sapecdci1:db2ecd 60> db2set -all
    [e] DB2DBDFT=ECD
    <i> DB2_RESTORE_GRANT_ADMIN_AUTHORITIES=YES [DB2_WORKLOAD]
    <i> DB2_BLOCKING_WITHHOLD_LOBLOCATOR=NO [DB2_WORKLOAD]
    <i> DB2_AGENT_CACHING_FMP=OFF [DB2_WORKLOAD]
    <i> DB2_TRUST_MDC_BLOCK_FULL_HINT=YES [DB2_WORKLOAD]
    <i> DB2_CREATE_INDEX_COLLECT_STATS=YES [DB2_WORKLOAD]
    <i> DB2_ATS_ENABLE=YES [DB2_WORKLOAD]
    <i> DB2_RESTRICT_DDF=YES [DB2_WORKLOAD]
    <i> DB2_DUMP_SECTION_ENV=YES [DB2_WORKLOAD]
    <i> DB2_OPT_MAX_TEMP_SIZE=10240 [DB2_WORKLOAD]
    <i> DB2_WORKLOAD=SAP
    <i> DB2_TRUNCATE_REUSESTORAGE=IMPORT [DB2_WORKLOAD]
    <i> DB2_MDC_ROLLOUT=DEFER [DB2_WORKLOAD]
    <i> DB2_ATM_CMD_LINE_ARGS=-include-manual-tables [DB2_WORKLOAD]
    <i> DB2_SKIPINSERTED=YES [DB2_WORKLOAD]
    <i> DB2_VIEW_REOPT_VALUES=YES [DB2_WORKLOAD]
    <i> DB2_OBJECT_TABLE_ENTRIES=65532 [DB2_WORKLOAD]
    <i> DB2_OPTPROFILE=YES [DB2_WORKLOAD]
    <i> DB2_IMPLICIT_UNICODE=YES [DB2_WORKLOAD]
    <i> DB2_RUNTIME_DEBUG_FLAGS=TOLERANT_FLOAT [DB2_WORKLOAD]
    <i> DB2STMM=APPLY_HEURISTICS:YES [DB2_WORKLOAD]
    <i> DB2_INLIST_TO_NLJN=YES [DB2_WORKLOAD]
    <i> DB2_MINIMIZE_LISTPREFETCH=YES [DB2_WORKLOAD]
    <i> DB2_REDUCED_OPTIMIZATION=4,INDEX,JOIN,NO_TQ_FACT,NO_HSJN_BUILD_FACT,STARJN_CARD_SKEW,NO_SORT_MGJOIN,CART OFF,CAP OFF [DB2_WORKLOAD]
    <i> DB2NOTIFYVERBOSE=YES [DB2_WORKLOAD]
    <i> DB2TERRITORY=1
    <i> DB2_INTERESTING_KEYS=YES [DB2_WORKLOAD]
    <i> DB2_EVALUNCOMMITTED=YES [DB2_WORKLOAD]
    <i> DB2_EXTENDED_OPTIMIZATION=NLJOIN_KEYCARD,IXOR [DB2_WORKLOAD]
    <i> DB2_ANTIJOIN=EXTEND [DB2_WORKLOAD]
    <i> DB2COMPOPT=327685,131776 [DB2_WORKLOAD]
    <i> DB2ATLD_PORTS=60000:65000
    <i> DB2ENVLIST=INSTHOME SAPSYSTEMNAME dbs_db6_schema DIR_LIBRARY LD_LIBRARY_PATH
    <i> DB2COMM=TCPIP [DB2_WORKLOAD]
    [g] DB2FCMCOMM=TCPIP4
    [g] DB2SYSTEM=sapecdci1
    [g] DB2INSTDEF=db2ecd
    sapecdci1:db2ecd 61> java com.ibm.db2.jcc.DB3Binder
    Exception in thread "main" java.lang.NoClassDefFoundError: com.ibm.db2.jcc.DB3Binder
       at gnu.java.lang.MainThread.run(libgcj.so.7rh)
    Caused by: java.lang.ClassNotFoundException: com.ibm.db2.jcc.DB3Binder not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/db2/db2ecd/sqllib/java/db2jcc_license_cu.jar,file:/db2/db2ecd/sqllib/java/db2jcc.jar,file:/db2/db2ecd/sqllib/function/,file:./,file:/db2/db2ecd/sqllib/java/db2java.zip,file:./,file:/db2/db2ecd/sqllib/java/db2java.zip,file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
       at java.net.URLClassLoader.findClass(libgcj.so.7rh)
       at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
       at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
       at gnu.java.lang.MainThread.run(libgcj.so.7rh)
    sapecdci1:db2ecd 62> db2 get dbm cfg | grep -i svcename
    TCP/IP Service name                          (SVCENAME) = sapdb2ECD
    SSL service name                         (SSL_SVCENAME) =

  • Remote Desktop connection from Macbook to Win 2012 TS

    One of our users purchased a new Macbook (OS X Yosemite) and installed the MS Remote Desktop app to do work from home.  We've been trying to connect, we get to the logon screen, but there is a message that the user does not have Allow Logon through
    Terminal Services right.  I've checked the rights, and the user can log in remotely from other workstations, so rights are not the issue.  We are using Remote Desktop version 8.0.14 (Build 25823).
    Any help would be appreciated.

    Hi,
    How you are trying to remote desktop (either by IP address or Password)?
    Did you find any specific error\log for your issue?
    Please try to reinstall the app and collect log from below path for further research.
    Microsoft Remote Desktop>About Microsoft Remote Desktop>Send log via email
    Apart you can check this article for more information.
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Remote Desktop Connection (from home out)

    Have BT infinity, has been working fine connecting via Microsoft remote desktop to my office PC (for those infrequent occasions where I need to pick on the odd email), but from about 3 weeks ago I am unable to connect.
    I have not changed anything at my end.  Others can still connect.  And I can connect via 3G, so have narrowed it down to the BT connection or the homehub. 
    I used wired, not wireless connection.
    Am connecting via Microsoft's "Application and Network Access Portal", but I just get a message
    Have BT altered something at their end?
    Really need to get this working again.
    Thanks

    Thanks both.  I've reverted to the HH3 (type B) i had down in the basement, but still no joy :-(
    I can connect to my office email, using Outlook Web Access, but really need to get Remote Desktop working as I need to get other (non email) resources.
    I did crack this a while back, but it has since stopped working - at that time it was setting my iprange to be something different (as other posts had mentioned about possible my PC conflicting with the range used by my office).  But that isn't helping this time.
    Would be annoyed if BT have altered something again.
    Just spotted the HH3 firmware was update at start of Nov
    Current firmware:
    V100R001C01B036SP05_L_B
    Last updated:
    01/11/13
    Ken

  • Runspace opening multiple remote powershell connections and not closing them

    Hello,
    I hope this has not already been asked as I have been searching for good amount of time.
    I have an asp.net site that runs some remote PowerShell scripts. Below is the code I Pass the script to. Everything works fine except it does not close all connections.
    When I do a netstat -ao I see that each time this is called it leaves 2 sessions opened to the remote server. I go on the remote server and do a Get-PSSession and do not see any of the sessions opened. When stepping through the code, "pRunspace.Open()"
    creates 2 connections to the destination server, Then the "psresult = pShell.Invoke" creates another open connection. The Dispose() only closes one of the 3 connections. Upping the amount of connections or changing the idle time on the receiving
    server is not an option as I have already increased/lowered them and it still gets maxed connections. . iisreset clears the open connections. I have tried .disconnect() but the destination does not have PowerShell 3.0. Am I missing something stupid here? Is
    there a better way to go about this. 
    Any help is appreciated.
    Thank you,
    Mike
    Public Shared Function RunRemotePSScript(ByVal script As PSCommand, ByVal ServerURL As String, ByVal shellurl As String) As String
    Dim pCredential As PSCredential
    Dim pConnectionInfo As WSManConnectionInfo
    Dim pRunspace As Runspace
    Dim pShell As PowerShell
    Dim securepass As New System.Security.SecureString
    Dim serverUri As New Uri(ServerURL)
    Dim psresult As New System.Collections.ObjectModel.Collection(Of PSObject)
    For Each c In "Password"
    securepass.AppendChar(c)
    Next
    '-- set credentials
    pCredential = New PSCredential("Domain\username", securepass)
    '-- set connection info
    pConnectionInfo = New WSManConnectionInfo(serverUri, shellurl, pCredential)
    '-- create remote runspace
    pRunspace = RunspaceFactory.CreateRunspace(pConnectionInfo)
    pRunspace.Open()
    '-- create powershell
    pShell = PowerShell.Create
    pShell.Runspace = pRunspace
    '-- add command to powershell
    pShell.Commands = script
    Try
    '-- invoke the powershell
    psresult = pShell.Invoke
    pShell.Dispose()
    pRunspace.Close()
    pRunspace.Dispose()
    Dim sb As String = ""
    For Each result As PSObject In psresult
    sb &= result.ToString
    Next
    Return sb
    pShell.Dispose()
    pRunspace.Dispose()
    pRunspace.Close()
    pRunspace = Nothing
    Catch ex As Exception
    If Not IsNothing(pShell) Then
    pShell.Dispose()
    End If
    If Not IsNothing(pRunspace) Then
    pRunspace.Dispose()
    pRunspace.Close()
    End If
    Return Err.Description
    End Try
    End Function
    That is the netstat output I get after running through the function one time.
    c:\Windows\system32>netstat -ao |findstr Server1
      TCP    MycomptuerIP:49307    RemoteServer1:http           ESTABLISHED     7632
      TCP    MycomptuerIP:49312    RemoteServer:http           ESTABLISHED     7632
    Here is an example of how i call the function. 
    Public Shared Function Set_UM_PinNumber(ByVal UserSamAccout As String, ByVal PinNumber As String) As String
    Try
    Dim output As String = ""
    Dim psh As New PSCommand
    psh.AddCommand("Set-UMMailboxPIN")
    psh.AddParameter("Identity", UserSamAccout)
    psh.AddParameter("Pin", (PinNumber))
    psh.AddParameter("PinExpired", 0)
    output = AD.ADWrapper.RunRemotePSScript(psh, "http://Server.domain.com/powershell?serializationLevel=Full", "http://schemas.microsoft.com/powershell/Microsoft.Exchange")
    If output = "" Then
    Return "Pin Updated"
    Else
    Return output
    End If
    Catch ex As Exception
    Return Err.Description
    End Try
    End Function

    Fred, 
    Thank you for taking time to reply. From what I got and tested "The EndInvoke method
    is used to retrieve the results from the completed runspace" Then you clean up after that.. Close is supposed to close all the connections. But I could be very wrong. I am self taught and
    truly could be going at this all wrong. This was working in the past ( could be that more people are using it now that I am seeing the connections full). I really hope someone can help me or direct me in the right direction as this is causing a lot of problem
    for me.
    Mike 

Maybe you are looking for