How to connect to remote server with jmx from jvisualvm

I have a WL 10.3.2 domain running on a single box. The adminserver and managed server are running on the same box, on different ports (7001 and 8001, respectively).
I have a Spring application deployed to the managed server and I've configured it to register a Spring bean as a JMX mbean.
When I run this entire configuration on my laptop, I can run jvisualvm and connect to my server and see and manipulate my registered mbean.
I'm having trouble figuring out how to get a remote connection working, however. I want to run jvisualvm on my laptop and connect to the remote server.
I first did "Add Remote Host", where I specified the IP address. It appears that this was created successfully, and it apparently was able to determine the DNS name for it.
I then tried to add a JMX connection. In the "Connection" field, I just entered the IP address followed by a colon and 8001 (managed server port number).
In the "Use security credentials" section, I entered the weblogic admin principal and credentials.
When I click OK, it chugs for a while and eventually gives up, saying:
Cannot connect to [email protected]:8001 using
service:jmx:rmi:///jndi/rmi://nn.nn.nn.nn:8001/jmxrmi
What might I be missing?

I've resolved this. At least I was able to configure an authenticated connection. It doesn't use SSL yet, but I'm ok with that for a while.
Resolving this only required changing the command line parameters for the managed server, and being aware of the "jmxremote.access" and jmxremote.password" files. The following blog article helped a lot: [http://www.dzone.com/links/r/monitoring_your_java_application_with_jmx_part_2.html] .
I'm now passing the following command-line parameters:
-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8888 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=true
The default "role" configured in "jmxremote.access" is "controlRole", and the "jmxremote.password" file specifies the credentials for that principal. I simply used that principal and credential in JVisualVM, and the connection succeeded.
And I just used the "host:port" form, not the protocol form.
Edited by: david.karr on Feb 4, 2011 12:47 PM

Similar Messages

  • How to connect MS-sql server with SAP BW

    hi all,
    i want the connection procedure to how to connect MS-sql server with SAP BW.so that i can extract the data from ms sql server and can create cubes using that data.please help me in this issue.

    Hi Vamshi,
    Go through this DOC it explains u how to connect to other data bases like SQL...
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/58f4db47-0501-0010-a2bf-ff01b150fdff]
    this is a thread related to connect the SQL server..
    [DB Connect MS SQL Server;
    Regards,
    NR
    Assign points if helpful...

  • How to connect a remote server in my local pc?.

    I have a code to connect my server in visual basic 6.0 code, my sap version is 2007 A.
    Private Sub ConnectToCompany()
        '// Initialize the Company Object.
        '// Create a new company object
        Set oCompany = New SAPbobsCOM.Company
        '// Set the mandatory properties for the connection to the database.
        '// To use a remote Db Server enter his name instead of the string "(local)"
        '// This string is used to work on a DB installed on your local machine
        oCompany.Server = "(local)"
        oCompany.language = ln_English
        '// Use Windows authentication for database server.
        '// True for NT server authentication,
        '// False for database server authentication.
        oCompany.UseTrusted = True
        ChooseCompany.Show vbModal, Me
      End Sub
    but I want to connect my remote server and I didn't. Do i forgeting  something??... I changed "(local)" for my name remote server or my local Ip for remote server. But maybe my user name windows for autentication. there is Someone who can help me please. Which one is the correct data I need??

    hello freind
    i think yu are missing  company usernsme,password,db type like this code
    private void Connect()
                try
                    Cursor = System.Windows.Forms.Cursors.WaitCursor;//Change mouse cursor             
                    oCompany = new SAPbobsCOM.Company();               
                    oCompany.DbServerType =  (SAPbobsCOM.BoDataServerTypes.dst_MSSQL2008);
                    oCompany.Server = Properties.Settings.Default.ServerName.ToString();// change to your company server
                    oCompany.language = SAPbobsCOM.BoSuppLangs.ln_English; // change to your language
                    oCompany.UseTrusted = false;
                    oCompany.DbUserName = Properties.Settings.Default.UserID.ToString();
                    oCompany.DbPassword = Properties.Settings.Default.Password.ToString();
                    // Set connection properties
                    oCompany.UserName = txtUSer.Text;
                    oCompany.Password = txtPassword.Text;
                    oCompany.CompanyDB = Properties.Settings.Default.DatabaseName.ToString();            
                    //Try to connect
                    lRetCode = oCompany.Connect();
                    if (lRetCode != 0) // if the connection failed
                        int temp_int = lErrCode;
                        string temp_string = sErrMsg;
                        oCompany.GetLastError(out temp_int, out temp_string);
                    //  u.action_status("Connection Failed - " + temp_string, this);
                    if (oCompany.Connected) // if connected
                        this.Text = this.Text + " - Connected to " + oCompany.CompanyDB;
                        CheckUser();
                    Cursor = System.Windows.Forms.Cursors.Default; //Change mouse cursor         
                catch (Exception)

  • How to connect a CVS server with remote Hosts(NWDS7.0)

    Hi Frndz..
    I installed CVSNT server in one machine n itz workiing fine with that NWDS in that machine , now i want make connect that CVS server from remote machines NWDS's to use that CVS server as a central repo'
    Can anyone guide me how can i connect that server from remote machines thru NWDS.
    Thnaks in Advance
    Regards
    Rajesh

    rajesh,
    did u check this link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d079e754-8c85-2b10-8b9a-b36db5262122
    Thanks
    Bala Duvvuri

  • Can't Connect to Remote Server with DW CS6?

    In the last couple of days I'm having trouble connecting to my website host server (IPower) via Dreamweaver CS6.
    I've been using this program and setup for several years but this weekend it takes 4 times longer to try and connect and ends up cancelling the operation usually.
    Sometimes it connects for a few seconds then I get an error message: "the connection to the remote host has been lost."
    Just wondering if this issue is Hughes ISP related. I tried disabling web acceleration with the same result. All other web and email operations are working fine.
    A colleague with cable internet connects to my host with Dreamweaver with no problems.
    Any ideas? Thanks in advance, John

    It could also be a local hardware issue.
    I had a wireless router that went belly up once in a very odd manner. I could connect and see the files on my FTP server, but uploads wouldn't work. I connected the computer directly to the modem, bypassing the router all together, and everything worked fine.
    It's something to check before you call your ISP and start sending them off on a possible wild goose chase.

  • How to connect to external server using router from VLAN's

    Hi, I am newbie. I am trying to build network system in Packet Tracer.
    Now I have such network layout.
    I have different VLAN's Accounting and Sales. I have configured this using subinterface in router to allow computers from different vlan's communicate with each other. Everything works.
    Let's assume that there are next subnets and VLAN's. Acct. VLAN (2) (ip's 172.168.0.1-172.168.0.254/24) and Sales VLAN (4) (ip's 172.168.1.1-172.168.1.254/24).
    But I need to connect all this computers to the external server.  That has ip , for instance 192.168.20.13/24. Like this.
    I don't know hot to correctly configure router to make it possible for computers to connect to this server. I have connected switch to the another router interface. And than connected server to the switch and specified ip 192.168.20.13/24. Than I tried to set ip to the router interface from the same subnet like 192.168.20.22/24. So now router can communicate with server.
    But how to allow computers to communicate with the server. Please help. I am newbie.
    I would be grateful for any help.

    Hi Androgen,
    One question for you..How does the sales VLAN computers communicate with the accounting VLAN machines? It's through the inter-VLAN routing that you have already setup.
    Communicating to the external server is also similar to this.
    The computer's in the VLAN should be configured with the default gateway IP which is the the L3 sub-interface IP for that subnet.
    Also, the external server needs to have a default gateway to communicate with other remote subnet. The default gateway of that server would be 192.168.20.22 which is the L3 interface for your external subnet.
    CF

  • How to connect to FTP server with out hardcoding the Password?

    HI experts,
    IN my SAP R3 i neeed to send a small file to FTP server from SAP application server using abap program.
    I found out many FMS which can connect ot FTP , but password need to be stored in Program.
    As per security issues i am not allowed to hardcode or keep the Password as constant , as my clinet will change the password weekly.
    Please suggest me a solution. How can we give the Password dynamically to the system.

    hi sivaram,
    You can keep the id password in a Batchfile and create a external command which doesnot need anyput just call external command from program and transfer file.

  • How to connect win 2003 server with Mac OS 10.4.6

    i try all the things i but it can't be done I follows these Steps:-
    Directory Access
    click on Active Directory then Configure
    then Active Directory Domain & Computer ID
    then Bind

    In the Domain Controller Security Policy on my active directory domain, I opened Local Policies -> Security Options and changed "Microsoft network client: Digitally sign communications (if server agrees)" to Enabled, and I changed "Microsoft network server: Digitally sign communications (if client agrees)" to Enabled. I then did GPUPDATE from a cmd prompt on the domain controller and I was able to bind with my 10.4.7 PowerBook.
    But now that I am bound I still cannot authenticate with domain credentials. Yes, in SMB/CIFS I have set the workgroup to be the netbios name of my domain. And the clock is synced with the domain controllers. I have even edited my smb.conf file with the "realm = MY.DOMAIN" and "security = ADS" and "spnego = yes" lines (where, of course, "MY.DOMAIN" = my domain name). But when I get to the login screen and type in my AD username and password, I get the shaking screen. It's like it isn't even trying to authenticate me with the domain.
    So if anyone else was in that situation and figured it out, please let me know. I am also going to post this as a new topic.
    FYI, I think the recommendation to solve this issue by using dcpromo to demote a domain controller is terrifying, excessive, and erroneous... and seeing it with a yellow "Helpful" star next to it is pretty scary. I think the person who made that suggestion would have been successful wtih the registry changes if the "Domain Controller Security Policy" had been edited, instead of the "Domain Security Policy."
    PBG4 17" 1.67GHz 2GB 100GB   Mac OS X (10.4.7)  

  • Connecting to remote server failed with the following error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic. It was running the command 'Discover-ExchangeServer -UseWIA $true -SuppressError $true -CurrentV

    I installed Exchange Server 2010 inside my VMWare Windows Server 2008 Ent R2. And After successful installation  when I try to open my Exchange Server Console, I am getting the following error message. I am very new to Exchange server please help me
    to solve this problem.
    Initialization Failed
    The following error occurred while searching for the on-premises Exchange server:
    [win-.local] Connecting to remote server failed with the following error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic. It was running the command 'Discover-ExchangeServer -UseWIA $true -SuppressError
    $true -CurrentVersion 'Version 14.1 (Build 218.15)''.
    Thanks Vivek
    SharePoint Foundation 2010 Book
    http://www.redpipit.com

    Hi,
    Please have a look at the article below:
    Troubleshooting Exchange 2010 Management Tools startup issues
    http://blogs.technet.com/b/exchange/archive/2010/02/04/3409289.aspx
    Resolving WinRM errors and Exchange 2010 Management tools startup failures
    http://blogs.technet.com/b/exchange/archive/2010/12/07/3411644.aspx
    Besides, please run the cmdlet below:
     set-user alias -remotepowershellenabled$true
    Xiu Zhang
    TechNet Community Support

  • Remote PowerShell Connection to Lync Server With Kerberos authentication Fails

    Hi everyone ,
    Remote PowerShell to Lync Server With Kerberos authentication Fails .. Is there any reason for not being able to connect when authentication specified as Kerberos . But exactly same code works when Authentication is specified as "Negotiate"
    E.g :
    Error -
    $session=New-PSSession -ConfigurationName Microsoft.Powershell -ConnectionUri https://serverName.lync.com/ocspowershell/ -Credential $cred -Authentication Kerberos
    [serverName.lync.com] Connecting to remote server failed with the following error message : The WinRM client cannot process the request. The authentication mechanism requested by the client is not supported by the server or unencrypted traffic is disabled in
    the service configuration. Verify the unencrypted traffic setting in the service configuration or specify one of the authentication mechanisms supported by the server.  To use Kerberos, specify the computer name as the remote destination. Also verify
    that the client computer and the destination computer are joined to a domain.To use Basic, specify the computer name as the remote destination, specify Basic authentication and provide user name and password. Possible authentication mechanisms reported by
    server:   Digest Negotiate For more information, see the about_Remote_Troubleshooting Help topic.
        + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [], PSRemotingTransportExc
       eption
        + FullyQualifiedErrorId : PSSessionOpenFailed
    Works  -
    $session=New-PSSession -ConfigurationName Microsoft.Powershell -ConnectionUri https://serverName.lync.com/ocspowershell/ -Credential $cred -Authentication Negotiate

    Hi,
    Please double check if Windows Update is the latest version, if not, please update and then test again.
    Please also ensure that the workstation you are using has network access to the Certificate Authority that signed the certificate.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • How can you run a command with elevated rights on a remote server with invoke-command ?

    I am trying to run a script on a remote server with invoke-command.  The script is starting and is running fine, but the problem is that it should be running with elevated rights on the remote server.  On the server where I start the invoke-command, my account has the necessary rights.
    The server were I launch the invoke-command is a W2K8 R2.  The remote box is a W2K3 with powershell v2.0 installed.
    When I launch the script on the remote-box from the command line, I don't get the access denied's.
    Is there a way to do this ?
    Thanks in advance

    The script that I want to run is to install the windows updates.  I get an access denied on the download of the updates.
    When I execute the script on an W2K8 box, (not remotely) and I run it with non-elevated rights, I get the same error.
    The script is running fine when it is launched on W2K3 box locally with a domain account that has local admin rights, or on a W2K8 R2 server with a domain account that has local admin rights, but with elevated rights.
    Thanks in advance for your help.
    #=== start script ====
    param($installOption="TESTINSTALL",$rebootOption="NOREBOOT")
    Function Show-Help
    Write-Host ""
    Write-Host "SCRIPT: $scriptName <installOption> <RebootOption>"
    Write-Host ""
    Write-Host "DESCRIPTION: Installatie van WSUS updates op de lokale server"
    Write-Host ""
    Write-Host "PARAMETERS"
    Write-Host " -installOption <[INSTALL|TESTINSTALL]>"
    Write-Host " -rebootOption <[REBOOT|NOREBOOT|REBOOT_IF_UPDATED]>"
    Write-Host ""
    Write-Host "EXAMPLE:"
    Write-Host "$ScriptName -installOption INSTALL -rebootOption REBOOT_IF_UPDATED"
    Write-Host "$ScriptNAme INSTALL NOREBOOT"
    Write-Host ""
    Write-Host "Indien beide parameter weggelaten worden zijn de defaultwaarden :"
    Write-Host " installOption=TESTINSTALL "
    Write-Host " RebootOption=NOREBOOT"
    Write-Host ""
    Exit
    #Include alle globale variablen
    $CEIF_WIN_PATH = (get-content env:CEIF_WIN_PATH)
    $includeFile=$CEIF_WIN_PATH + "\Scripts\include_win.ps1"
    . $includeFile
    #initialiseer error count
    $errcnt=0
    $scriptName=$MyInvocation.MyCommand.Name
    #argumenten controleren
    $arrInstallOption= "TESTINSTALL", "INSTALL" # Mandatory variable with predefined values
    If (!($arrInstallOption –contains $installOption)){ Show-Help }
    $arrRebootOption = "REBOOT", "NOREBOOT","REBOOT_IF_UPDATED" # Mandatory variable with predefined values
    If (!($arrRebootOption –contains $rebootOption)){ Show-Help }
    #Logfile opbouwen
    $logfile = get-logfileName($MyInvocation.MyCommand.Name)
    Log-scriptStart $MyInvocation.MyCommand.Name $logfile
    function Get-WIAStatusValue($value)
    switch -exact ($value)
    0 {"NotStarted"}
    1 {"InProgress"}
    2 {"Succeeded"}
    3 {"SucceededWithErrors"}
    4 {"Failed"}
    5 {"Aborted"}
    function boot-server()
    if ($installOption -eq "TESTINSTALL")
    logger "TESTINSTALL : - Reboot local Server" $logfile
    else
    logger " - Reboot local Server" $logfile
    $thisServer = gwmi win32_operatingsystem
    $thisServer.psbase.Scope.Options.EnablePrivileges = $true
    $thisServer.Reboot()
    $logmsg="Install option = " + $installOption + ", RebootOption = $rebootOption"
    logger "$logmsg" $logfile
    logger "" $logfile
    logger " - Creating WU COM object" $logfile
    $UpdateSession = New-Object -ComObject Microsoft.Update.Session
    $UpdateSearcher = $UpdateSession.CreateUpdateSearcher()
    logger " - Searching for Updates" $logfile
    $SearchResult = $UpdateSearcher.Search("IsAssigned=1 and IsHidden=0 and IsInstalled=0")
    logger " - Found [$($SearchResult.Updates.count)] Updates to Download and install" $logfile
    $Updates=$($SearchResult.Updates.count)
    logger "" $logfile
    foreach($Update in $SearchResult.Updates)
    if ($Update.EulaAccepted -eq 0)
    $Update.AcceptEula()
    # Add Update to Collection
    $UpdatesCollection = New-Object -ComObject Microsoft.Update.UpdateColl
    $UpdatesCollection.Add($Update) | out-null
    if ($installOption -eq "TESTINSTALL")
    else
    # Download
    logger " + Downloading Update $($Update.Title)" $logfile
    $UpdatesDownloader = $UpdateSession.CreateUpdateDownloader()
    $UpdatesDownloader.Updates = $UpdatesCollection
    $DownloadResult = $UpdatesDownloader.Download()
    $Message = " - Download {0}" -f (Get-WIAStatusValue $DownloadResult.ResultCode)
    if ($DownloadResult.ResultCode -eq 4 )
    { $errcnt = 1 }
    logger $message $logfile
    # Install
    logger " - Installing Update" $logfile
    $UpdatesInstaller = $UpdateSession.CreateUpdateInstaller()
    $UpdatesInstaller.Updates = $UpdatesCollection
    $InstallResult = $UpdatesInstaller.Install()
    $Message = " - Install {0}" -f (Get-WIAStatusValue $InstallResult.ResultCode)
    if ($InstallResult.ResultCode -eq 4 )
    { $errcnt = 1 }
    logger $message $logfile
    logger "" $logfile
    #Indien er een fout gebeurde tijdens download/installatie -> stuur mail naar windowsteam
    if ( $errcnt -gt 0 )
    logger " - Fout tijdens de uitvoering van script -> send mail" $logfile
    $mailSubject=$MyInvocation.MyCommand.Name
    $msg = new-object Net.Mail.MailMessage
    $att = new-object Net.Mail.Attachment($logfile)
    $smtp = new-object Net.Mail.SmtpClient($smtpServer)
    $msg.From = $mailFrom
    $msg.To.Add($mailTo)
    $msg.Subject = $mailSubject
    $msg.Body = “Meer details in attachement”
    $msg.Attachments.Add($att)
    $smtp.Send($msg)
    #Moet de server herstart worden ?
    if ($rebootOption -eq "REBOOT_IF_UPDATED" )
    if ($Updates -gt 0)
    #Reboot the server when updates are installed
    boot-server
    elseif ($rebootOption -eq "REBOOT")
    #reboot the server always
    boot-server
    else
    #Do not reboot the server
    logger "Do not reboot the server" $logfile
    Log-scriptEnd $MyInvocation.MyCommand.Name $logfile
    exit 0

  • F107 error ubnable to establsh connect to remote server

    Groupwise 8.0.2 with netware 6.5 sp8. Getting error when startup the POA during a boot up.

    On 10.05.2011 00:06, sl0000 wrote:
    >
    > Groupwise 8.0.2 with netware 6.5 sp8. Getting error when startup the POA
    > during a boot up.
    Somewhere in your POA configuration is a path to a remote server defined
    (which you really shouldn't do on purpose), and the POA doesn't know how
    to connect to that server.
    Start with the paths in the .poa config file.
    CU,
    Massimo Rosen
    Novell Product Support Forum Sysop
    No emails please!
    http://www.cfc-it.de

  • Connect to remote server

    sorry, I'm new on this, but I couldn't find any example of connect string for rempte server (not even in the Oracle C++ Call Interface Programmer's Guide, ch2.
    For example, if I want to use JDBC is:
    "jdbc:oracle:thin:@prophet.njit.edu:1521:course"
    How should be the syntax for OCCI?
    thanks
    Sergio

    If you are at home what are you doing to access the server?
    I have tried both using the URL and the IP number to the remote server, with and without the "afp://"-prefix. (AppleTalk is enabled in the SysPrefs.)
    If this is a critical server then it is unwise to have the afp protocol opened up to the internet. Also Appletalk is not used in Leopard for file sharing it is a legacy protocol that still exists for printers.
    The server runs OSX Server (10.4.?) as far as I know. It used to work in 10.5.4. Any ideas?
    If your server is running Tiger server you should enable the vpn server and use that to access it from outside.
    If a server admin setup your Tiger server I would be very surprised if they had opened up AFP to the world.

  • Hi there, I am trying to connect to my server at work from home using a vpn connection. It connects fine and the time ticks along, but when i click go - connect to server, it comes up with connection failed. Please help!

    Hi there, I am trying to connect to my server at work from home using a vpn connection. It connects fine and the time ticks along, but when i click go - connect to server, it comes up with connection failed. Please help!

    ... when i click go - connect to server, it comes up with connection failed.
    If you're trying to connect to a Bonjour server on the remote network, that won't work over a layer 3 VPN. Use something like Hamachi or one of the SSH-tunnelling Bonjour proxy apps for that.

  • How to connect a USB-6008 with lookout6.0?

    hi >>>
    I am a student in electrical and computer department, i want to ask about
    How to connect a USB-6008 with lookout6.0 if thats possible?Could you
    provide some help?
    Regards
    Manal

    Hi Manal there is a way to do this, DAQ or DAQmx drivers have an OPC server, you can find the detailed information in the next link
    http://digital.ni.com/public.nsf/websearch/13BBC10CCC1FECBA8625720B00823140?OpenDocument
    Best Regards
    Benjamin C
    Senior Systems Engineer // CLA // CLED // CTD

Maybe you are looking for