Passing Credentials When Reading Performance Counters on Remote Computers; Systems.Diagnostics namespace

Hello,
I am working on a website where I need to read a few performance counters on remote computers.
I'm using the System.Diagnostics namespace and the following is a snipet of my code:
****************  CODE  *********************************************************
 Try
            With perf_process
                .MachineName = Hostname
                .CategoryName = "Process"
                .CounterName = "Private Bytes"
                'Write entry to log here
                tmp_working_set = perf_process.NextValue()
                txtWorkingSet.Text = tmp_working_set
                Select Case tmp_working_set
                    Case Is > 80000000
                        working_set_status = "Red"
                    Case 40000000 To 80000000
                        working_set_status = "Green"
                    Case 1000000 To 40000000
                        working_set_status = "Yellow"
                    Case Else
                        working_set_status = "Error"
                End Select
                If working_set_status = "Error" Then
                    txtWorkingSet.BackColor = Drawing.Color.Red
                    txtWorkingSet.Text = String.Format(CultureInfo.InvariantCulture, "{0:0,0.0}", working_set_status)
                Else
                    txtWorkingSet.Text = String.Format(CultureInfo.InvariantCulture, "{0:0,0.0}", tmp_working_set)
                    txtWorkingSet.Text = tmp_working_set
                End If
            End With
        Catch
            ErrMsg = ("Error reading the Working Set (memory) counter on " & Hostname & "." & vbCrLf & "Error number is " & Err.Number & vbCrLf & "Error description:
" & Err.Description)
            MsgBox(ErrMsg)
            Write_Log_Entry(Now(), ErrMsg)            
            ErrMsg = ""
        End Try
****************  CODE  *********************************************************
I usually end up with an "Access Denied" error because the account I'm running under does not have the proper permissions on the remote computer to read the counters.
How can I pass and connect to the remote computer with a different set of credentials that have access to the counters?
Exactly what permissions do I need to access the remote counters?  I can read them on some of my test computers and on others, I get the "Access Denied" error.
Thanks in Advance,
DetRich
DetRich

http://forums.asp.net/
The ASP.NET forum is probably where you need to post.

Similar Messages

  • Error when reading the ID of the business system from the SLD

    Hi,
    I am working on a scenario JDBC - XI - BW (ABAP Proxies). I configured all the steps required to connect XI & BW systems. The SLDCHECK transaction is all green. I was able to connect to SLD from BW using SXMB_IFR tcode too. I was able to look at all the XI Repository interfaces from SPROXY tcode in BW. Created a new ABAP proxy (class interface and method) for the message interface in XI from BW (SPROXY Tcode). Created all required config in XI Directory. Got the message from JDBC adapter, mapping done successfully, and the message failed in the CALL Adapter Step.
    The error is "Error when reading the ID of the business system from the SLD for system BWS and client 100."
    What could have gone wrong. Thanks in advance.
    Srini

    Hi,
    :::::::One Should Have the Following Roles AS A XI Developer With Out Admin Rights ::::::
    1) SAP_XI_Developer_ABAP +
    2) SAP_XI_Developer_J2EE  +
    3) SAP_XI_MONITOR_ABAP   +
    4) SAP_XI_MONITOR_J2EE    +
    5) SAP_SLD_ADMINISTRATOR +
    6) SAP_XI_BPE_MONITOR_ABAP +
    7) SAP_XI_DEMOAPP
    8) SAP_XI_DISPLAY_USER_ABAP +
    9) SAP_XI_DISPLAY_USER_J2EE +
    Regards
    Sesh

  • How to solve this problem, pls help when I try to see remote camera system from home."Dual streaming is required for HTML viewing"

    How to solve this problem, pls help when, I try to see remote camera system(spec dvr) from home. The Error I get is "Dual streaming is required for HTML viewing"

    I had the same probelm and found that the problem lies with 64bit programs such as safari and microsoft internet explorer. I have resolved the issue on my PC based server by using a 32 bit ie and same on my mac by using the same running windows under parallels.
    So far the problem with the 64 bit side of it is still to be resolved.
    Hope this helps and gets you guys up and running until suchtime a 64 bit solution is found.
    Craig

  • How to pass credentials/saml token access sharepoint web service ex:lists.asmx when sharepoint has single sign on with claims based authentication

    How to pass credentials/saml token exchange to the sharepoint web service ex:lists.asmx when sharepoint has single sign on with claims based authentication 
    Identity provider here is Oracle identity provider 
    harika kakkireni

    Hi,
    The following materials for your reference:
    Consuming List.asmx on a claims based sharepoint site
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/f965c1ee-4017-4066-ad0f-a4f56cd0e8da/consuming-listasmx-on-a-claims-based-sharepoint-site?forum=sharepointcustomizationprevious
    Sharepoint Claims based authentication and Single Sign on
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/2dfc1fdc-abc0-4fad-a414-302f52c1178b/sharepoint-claims-based-authentication-and-single-sign-on?forum=sharepointadminprevious
    Sharepoint Claim Based Authentication Web Service issuehttp://social.msdn.microsoft.com/Forums/office/en-US/dd4cc581-863c-439f-938f-948809dd18db/sharepoint-claim-based-authentication-web-service-issue?forum=sharepointgeneralprevious
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Performance counters are not always removed when APM is disabled

    On several occasions I've noticed that even after:
    removing a server from the target group of all APM management packs
    waiting until IISReset is required
    doing the IISReset
    still some .NET APPS performance counters linger on or maybe gets recreated when load (out of my control) hits the server.
    Profiling the IIS process using Visual Studio I see no use of PerfMon64, so I looks like APM is disabled on the server, but why isn't the performance counter(s) gone?
    Thanks
    Michael Brandt Lassen

    Michael,
    The performance counters category ".NET Apps" is registered on the server at the moment of the APM agent installation (part of MMA agent). Later, the instances are created by the monitored applications. If no applications are monitored, then no
    instances are registered inside the category but category itself isn't going away from the server while APM/MMA is still installed.
    I think it's done to only care about instance creation from inside of the monitored app but not about the category registration from within the app (which requires more privileges...). Also, APM service can always monitor the existing category to wait for
    the new instances and avoid checking for the category itself to re-register the PDH queries..
    It's easy to kill this category even if MMA agent is installed but it might easily break the monitoring scenarios if some app will be monitored on this server again... (E.g. you can run "unlodctr" and point it to the appropriate counters dll or
    ini file...). So, it's better to keep it as is.
    Dmitry Matveev

  • DOI - I_OI_SPREADSHEET, poor performance when reading more than 9999 record

    Hi,
    Please read this message in the [ABAP Performance and Tuning|DOI - I_OI_SPREADSHEET, poor performance when reading more than 9999 record; section and see if you have any advise.
    Best Regards,
    Marjo

    Hi,
    I met this issue when I tried to write vaule to massive fields of excel range.
    And I solve this issue by using CL_GUI_FRONTEND_SERVICES=>CLIPBOARD_EXPORT.
    So, I think you may fix it in the same way.
    1. Select range in by the I_OI_SPREADSHEET
    2. Call method I_OI_DOCUMENT_PROXY->COPY_SELECTION
    3. Call method CL_GUI_FRONTEND_SERVICES=>CLIPBOARD_IMPORT
    Cheers,

  • No performance counters and other issues

    The title is my main issue, but beating my head against a wall here. Anyone with enough patience to read through my issues below is a saint.
    Following every guide out there, myself and our Linux admin have gone over in detail everything that needs to be done to monitor our RHEL 6 servers in SCOM, but alas, we are having issues.
    First, we tried it on three different servers, all running RHEL 6.6. The servers appear as green and healthy in SCOM, and we get "some" alerts from them such as unauthorized login attempts. However, when we try to open a performance view,
    there are no counters displayed on two of them. One of them displays all the counters you would expect, but none of them have any data collected, except for one lone three hour period from two weeks ago. Before and after that: nothing. That's my biggest confusion,
    because for some odd reason, it managed to work for that time period, so what changed?
    Next, I should mention that I have also had to flat out disable the unix/linux heartbeat monitor because when it's enabled, after about 10 minutes all 3 linux servers will go grey, and no alerts come in for them.
    Digging through all of the posts here, I've come across multiple things to try that have worked for other people, but all with no luck. For starters, theres the whole port 1270 thing. There is no firewall on either the management server or the linux
    servers, and checking for listeners shows the scom agent listening on port 1270 on the linux server. Should there be something listening on port 1270 on the Management server? Because if so, there isn't, and I cant find any posts that say how to make that
    happen. I've attempted to run simple winrm commands from the management server to attempt to gather data from the linux servers, however, when running the command below:
    winrm e "http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/SCX_Agent?__cimnamespace=root/scx" -r:"http://<server>:1270" -auth:basic -username:<user> -password:<pass> -encoding:utf-8
    It fails 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 configu
    ration. 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 authentic
    ation and provide user name and password. Possible authentication mechanisms reported by server:
    Anyone have any ideas why there are no performance counters, or why winrm requests fail? Is there some missing hidden step or configuration need on the linux end to make the winrm queries work?
    Please help!

    Steve,
    I've never seen any alerts from SCOM in an event viewer log. If you're talking about errors about communication, there arent any coming in. By all accounts, it appears as if SCOM "thinks" it's working fine. As for the agent going "grey",
    they only go grey if I have the heartbeat monitor enabled. Even when they're grey, I can still run tasks in the scom console against them to get top processes etc.
    I've tried changing some of the winrm configs already to attempt successful connections, but with no luck. Here's the current output of winrm get winrm/config:
    Config
        MaxEnvelopeSizekb = 50
        MaxTimeoutms = 60000
        MaxBatchItems = 32000
        MaxProviderRequests = 4294967295
        Client
            NetworkDelayms = 5000
            URLPrefix = wsman
            AllowUnencrypted = true
            Auth
                Basic = true
                Digest = true
                Kerberos = true
                Negotiate = true
                Certificate = true
                CredSSP = false
            DefaultPorts
                HTTP = 5985
                HTTPS = 5986
            TrustedHosts = *
        Service
            RootSDDL = O:NSG:BAD:P(A;;GA;;;BA)(A;;GR;;;IU)S:P(AU;FA;GA;;;WD)(AU;SA;GXGW;;;WD)
            MaxConcurrentOperations = 4294967295
            MaxConcurrentOperationsPerUser = 1500
            EnumerationTimeoutms = 240000
            MaxConnections = 300
            MaxPacketRetrievalTimeSeconds = 120
            AllowUnencrypted = true
            Auth
                Basic = true
                Kerberos = true
                Negotiate = true
                Certificate = false
                CredSSP = false
                CbtHardeningLevel = Relaxed
            DefaultPorts
                HTTP = 5985
                HTTPS = 5986
            IPv4Filter = *
            IPv6Filter = *
            EnableCompatibilityHttpListener = false
            EnableCompatibilityHttpsListener = false
            CertificateThumbprint
            AllowRemoteAccess = true
        Winrs
            AllowRemoteShellAccess = true
            IdleTimeout = 7200000
            MaxConcurrentUsers = 10
            MaxShellRunTime = 2147483647
            MaxProcessesPerShell = 25
            MaxMemoryPerShellMB = 1024
            MaxShellsPerUser = 30
    We started the trace on the linux server, and it does appear to be hitting it, but I can't really tell from the logs what exactly it's trying to do. Every 5 minutes it appears to be hitting the /var/log/secure file but im not sure what it's looking for.
    Below is the log activity for the first 20 minutes or so after we began the log. From what I understand, the management server should be attempting to grab performance data every 5 minuts, but I don't think that's happening.
    * Microsoft System Center Cross Platform Extensions (SCX)
    * Build number: 1.5.1-150 Labeled_Build
    * Process id: 30046
    * Process started: 2015-03-24T16:15:33,574Z
    * Log format: <date> <severity>    
    [<code module>:<line number>:<process id>:<thread id>] <message>
    2015-03-24T16:15:33,575Z Trace      [scx.core.providers.logfileprovider.logfilestreampositioner:356:30046:139918764054464] IsNewFile - not new file
    2015-03-24T16:15:33,575Z Trace      [scx.core.providers.logfileprovider.logfilestreampositioner:277:30046:139918764054464] LogFileProvider OpenLogFile /var/log/secure- Seek to: 109390
    2015-03-24T16:15:33,575Z Trace      [scx.core.providers.logfileprovider.logfilestreampositioner:311:30046:139918764054464] LogFileProvider PersistState() - pos = 109545
    * Microsoft System Center Cross Platform Extensions (SCX)
    * Build number: 1.5.1-150 Labeled_Build
    * Process id: 30054
    * Process started: 2015-03-24T16:20:33,572Z
    * Log format: <date> <severity>    
    [<code module>:<line number>:<process id>:<thread id>] <message>
    2015-03-24T16:20:33,573Z Trace      [scx.core.providers.logfileprovider.logfilestreampositioner:356:30054:140547729790912] IsNewFile - not new file
    2015-03-24T16:20:33,573Z Trace      [scx.core.providers.logfileprovider.logfilestreampositioner:277:30054:140547729790912] LogFileProvider OpenLogFile /var/log/secure- Seek to: 109545
    2015-03-24T16:20:33,573Z Trace      [scx.core.providers.logfileprovider.logfilestreampositioner:311:30054:140547729790912] LogFileProvider PersistState() - pos = 109700
    2015-03-24T16:20:46,072Z Trace      [scx.core.common.pal.system.systeminfo:98:28125:140643556374464] SystemInfo constructor
    2015-03-24T16:20:46,072Z Trace      [scx.core.common.pal.system.systeminfo:118:28125:140643556374464] SystemInfo Update()
    2015-03-24T16:20:46,072Z Trace      [scx.core.common.pal.system.systeminfo:108:28125:140643556374464] SystemInfo destructor
    2015-03-24T16:20:46,072Z Trace      [scx.core.common.pal.system.systeminfo:98:28125:140643556374464] SystemInfo constructor
    2015-03-24T16:20:46,072Z Trace      [scx.core.common.pal.system.systeminfo:118:28125:140643556374464] SystemInfo Update()
    2015-03-24T16:20:46,073Z Trace      [scx.core.common.pal.system.systeminfo:108:28125:140643556374464] SystemInfo destructor
    * Microsoft System Center Cross Platform Extensions (SCX)
    * Build number: 1.5.1-150 Labeled_Build
    * Process id: 30058
    * Process started: 2015-03-24T16:25:33,571Z
    * Log format: <date> <severity>    
    [<code module>:<line number>:<process id>:<thread id>] <message>
    2015-03-24T16:25:33,571Z Trace      [scx.core.providers.logfileprovider.logfilestreampositioner:356:30058:140363780855744] IsNewFile - not new file
    2015-03-24T16:25:33,571Z Trace      [scx.core.providers.logfileprovider.logfilestreampositioner:277:30058:140363780855744] LogFileProvider OpenLogFile /var/log/secure- Seek to: 109700
    2015-03-24T16:25:33,572Z Trace      [scx.core.providers.logfileprovider.logfilestreampositioner:311:30058:140363780855744] LogFileProvider PersistState() - pos = 109855
    * Microsoft System Center Cross Platform Extensions (SCX)
    * Build number: 1.5.1-150 Labeled_Build
    * Process id: 30066
    * Process started: 2015-03-24T16:30:33,570Z
    * Log format: <date> <severity>    
    [<code module>:<line number>:<process id>:<thread id>] <message>
    2015-03-24T16:30:33,570Z Trace      [scx.core.providers.logfileprovider.logfilestreampositioner:356:30066:139978787211200] IsNewFile - not new file
    2015-03-24T16:30:33,571Z Trace      [scx.core.providers.logfileprovider.logfilestreampositioner:277:30066:139978787211200] LogFileProvider OpenLogFile /var/log/secure- Seek to: 109855
    2015-03-24T16:30:33,571Z Trace      [scx.core.providers.logfileprovider.logfilestreampositioner:311:30066:139978787211200] LogFileProvider PersistState() - pos = 110010
    * Microsoft System Center Cross Platform Extensions (SCX)
    * Build number: 1.5.1-150 Labeled_Build
    * Process id: 30072
    * Process started: 2015-03-24T16:35:33,570Z
    * Log format: <date> <severity>    
    [<code module>:<line number>:<process id>:<thread id>] <message>
    2015-03-24T16:35:33,571Z Trace      [scx.core.providers.logfileprovider.logfilestreampositioner:356:30072:140082908952512] IsNewFile - not new file
    2015-03-24T16:35:33,571Z Trace      [scx.core.providers.logfileprovider.logfilestreampositioner:277:30072:140082908952512] LogFileProvider OpenLogFile /var/log/secure- Seek to: 110010
    2015-03-24T16:35:33,571Z Trace      [scx.core.providers.logfileprovider.logfilestreampositioner:311:30072:140082908952512] LogFileProvider PersistState() - pos = 110165
    Again, I appreciate the help,
    Alvin

  • WAS Tool - Clients and Performance Counters

    can anyone help me !!!
    - I want to add clients to my WAS tool. I am not able to do that by adding domain name or the IP address. Can you guys give me a detailed description of how this can be done and what it does when we add a client to our WAS tool.
    - Unable to load performance counters from my system or any other system. please reply with details.
    thanks
    madhav

    Hello,
    I did the same, new DB is listing for me :)
    Steps I followed are as below:
    Using an elevated administrator command prompt perform the following steps.
    Change the path to the BINN directory of the SQL Server instance you desire to correct.   (Ex: C:\Program Files\Microsoft SQL Server\MSSQL10.SQL2008\MSSQL\Binn)
    2.       Execute unlodctr  <<REGISTERED SERVER NAME>>    For
    example: unlodctr MSSQL$SQL2008 or SQLAgent$SQL2008, …
    Execute lodctr /T:<<perf-sql* matching the counters you desire to load>>    For example: perf-MSSQL$SQL2008sqlctr.ini or perf-SQLAgent$SQL2008sqlagtctr.ini
    for SQLAgent, …  The /T is important to load the SQL Server performance counter provider as a trusted provider.
    Cycle the remote registry service  net stop "Remote Registry" and net start "Remote Registry"
    Force a WMI synchronization using   winmgmt /resyncperfctr "<<PID>>"  where PID is the process id of the WinPriv.exe (you can get this from Task
    Manager)
    Regards, Pradyothana DP. Please Mark This As Helpful if it helps to solve your issue. ========================================================== http://www.dbainhouse.blogspot.in/

  • Getting Prompt for Credentials When Opening InfoPath 2010 Form in Sharepoint 2010

    I have a domain user who runs Office 2010 x32 and uses a Sharepoint 2010 site daily. Lately a specific page on that site has been randomly giving prompts for credentials when opening existing documents and creating new ones. The process can be most easily
    replicated by opening the new document template in Infopath by going to Documents -> New in the ribbon bar of the SP page. Most of the time the Windows credentials for the user are passed to Infopath/Sharepoint automatically (which is normal), but on the
    fourth or fifth attempt to create a new form, the prompt appears. The user can still enter the credentials and open the blank template form, but a prompt should not appear. The user is also the administrator for that page, so I'm thinking it's not a permissions
    issue.
    The user is running IE 9 on Windows 7 Pro x64. I have performed the following:
    Reset advanced IE settings and all user cache data
    Cleared cached Sharepoint credentials in Windows credential manager
    Re-applied group policy for the machine using gpupdate /force
    Logged in with a clean temporary profile
    Logged in to another domain account using the user's Sharepoint credentials
    Cleared Infopath cache
    Re-installed Office 2010 x32
    The problem only occurs only on this particular machine. There are no Sharepoint or authentication-related errors or warnings in the application and system event logs. There are also no error messages on-screen when the prompt appears. I also considered
    the possibility of this being a performance related issue in the case that maybe Infopath was taking too long to start, causing the credential pass-through process to time out and fall back to a prompt. I ran disk cleanup, deleted some temporary files, and
    checked for excessive CPU/memory load. I didn't find any issues and doing these things did not help.
    I'm convinced there is another setting somewhere in Windows that is causing this. Interestingly it always happens after four or five attempts, never the first time. Can someone point me in the right direction?

    Hi Titan, this sounds like an IE security setting issue. Things to do:
    1. In Internet options>Security>Local Intranet, make sure "Enable Protected Mode" is not selected.
    2. Under Sites>Advanced, add https://*.sharepoint.com (and make sure "Require server verification..." is not checked).
    3. Under Security>Custom Level, scroll all the way to the bottom and make sure "Automatic logon with current user..." is checked.
    cameron rautmann

  • WMI Performance counters not shown in SCOM Performance view

    Hi,
    We're unable to see %CPU usage, avg cpu queue length and many other WMI counters on a Performance View for one of our servers.
    - The agent is displayed as healthy.
    - We are getting data from counters generated by script.
    - WMI counters are shown as enabled.
    - We're able to see the counters locally on server manager, on performance counters.
    - we have run lodctr /R, without success.
    - no alerts on the scom agent or server.
    - no overrides for these counters exist.
    So definitely it looks like the WMI infrastructure is working ok but somehow data is not being sent to the server. Any hints on debugging this issue?
    Thanks in advance

    Ops Manager, Ops DW, or both?  If performance collection is ENABLED for this server, and it's a W2K8 box, and you can see the perf in perf monitor on the server, then you should look to see if other performance is missing.  If there are no performance
    counters being collected, then you can do a few things, but before doing that, do some spot checking.
    Is this rule enabled?  Did someone override disable it?  If enabled, and no overrides, then create a view (my views or whatever that custom workspace is) targetting the generic class of "said" target for the collection rule.  Do you see any
    computers listed?  How many computers are listed?  Jot that down.  Go to discovered inventory in the monitoring pane, and change scope to the targeted class for the collection rule.  Count what is returned, do the number of servers returned
    match?
    If you have the same number of green healthy objects in both the custom view and the discovered inventory scope, then you are good, if there are a few missing, you need to troubleshoot those agents.
    If you are missing all of them, you probably have a problem with your RMS/SQL, which means you have to start traces on SQL and or at the very least look at the ops manager event log on the rms.
    So, back to the "missing a few" scenario.  You could start to do logging, etc, but instead of that, reinstall the agent on one of the machines not showing up in both views.  Wait a few hours.  Check the views again, and keep an eye on the
    ops manager event log on that sick agent.  Increase the size of the log file, if you have too, so you don't over right events.
    After a few hours if it's not showing up, you can either start down the path of enabling tracing on the agent (there are kbs on how to turn this on, and the logs are not hard to go through), or you can uninstall the agent.  Run cleanmom on the box.
     Reinstall the agent.
    I would perform the repair, clean mom, before I troubleshoot the agent, but that's just me.  Keep in mind, any data that is collected and or queued will be lost when you do the clean mom.  But since you have no data as it is, no real loss.
    While the agent is showing up in the console, and before you start down the previous steps, I would verify that you have events collected as well (another query) and stop a service on the box that is supposed to be monitored, see if it triggers and alert
    and a state change.  Also peek at the RMS ops manager event log, you might have some SQL problems.
    Good luck.
    Regards, Blake Email: mengotto<at>hotmail.com Blog: http://discussitnow.wordpress.com/ If my response was helpful, please mark it as so, if it answered your question, then please also mark it accordingly. Thank you.

  • Error in JVM when starting NWDS by MS Remote Console

    Hello,
    when i connect via MS Remote Console to another PC and try to start NWDS an error in popup takes place.
    Java Virtual Machine Launcher:
    Could not create the Java virtual machine
    By clicking "OK" the next popup comes.
    SAP Netweaver Developer Studio:
    JVM terminated. Exit code=1
    C:\j2sdk1.4.2_16\bin\javaw.exe
    -XmX1024m
    -Xms1024m
    -XX:PermSize=192m
    -XX:MaxPermSize=192m
    -DallUserDir='C:\Dokumente und Einstellungen\All Users\Anwendungsdaten'
    -cp C_\Programme\SAP\JDT\eclipse\SapStartup.jar com.sap.ide.eclipse.startup.Main
    -os win32
    -ws win32
    -arch x86
    -feature com.sap.ide
    -showsplash C:\Programme\SAP\JDT\ecplise\SapIde.exe -showsplash 600"
    Can anybody help starting NWDS via Remote Console?
    We testes with different connection (mstsc /console, only mstc, MS Link, Citrix), different OS (XP and Vista), LAN and Internet Connections, different JVM, etc.
    thx

    Hi,
    thx for answer.
    It probably seems to work with lower settings (xms256 to xmx512).
    Can you explain why this settings are "too high"?
    We set this because we have "enough" RAM in system and for our development it is probably the best (quickest) setting we tested. Also i read about this settings in www, and there are 2 things they recommended for performance:
    First: Max. Settings is 1024MB and Second: set xms and xmx to the same value.
    thx for help.
    I`ve set 768 value to vm-parameters. It works.
    Edited by: Torsten on Aug 19, 2008 2:30 PM

  • How to use custom performance counters to monitor my app?

    Hi,
    I have a app which will read messages from a specified service bus queue. I want to monitor how many messages it read from service bus queue in the last minutes. And I want to use a custom performance counter to achieve that.
    Then I first initialized the PerformanceCounterCategory by the following code:
    var counterCreationData = new CounterCreationData
    CounterName = "numberOfMessages",
    CounterHelp = "help",
    CounterType = PerformanceCounterType.NumberOfItems32
    var counterCollection = new CounterCreationDataCollection();
    counterCollection.Add(counterCreationData);
    PerformanceCounterCategory.Create(
    "CustomCounterCategory",
    "CategoryDescription",
    PerformanceCounterCategoryType.SingleInstance,
    counterCollection);
    Then when my code receive messages, I just call the IncrementBy() method to count the messages. below is the code snippet:
    private static readonly PerformanceCounter Counter = new PerformanceCounter("CustomCounterCategory", "numberOfMessages", string.Empty, false);
    private void OnReceive()
    var messages = _subscriptionClient.ReceiveBatch(32);
    var brokeredMessages = messages as IList<BrokeredMessage> ?? messages.ToList();
    if (messages != null && brokeredMessages.Any())
    Counter.IncrementBy(messages.Count);
    MessageReceived(this, brokeredMessages);
    When I check the data from the azure table, "WADPerformanceCountersTable".  The CounterValue is just simply increasing. It is not the numbers of received messages in last minutes.
    To get the numbers of received messages in last minutes, how should I write my code?
    BTW, I'm using the AZure SDK 2.5. The transfer interval is set to 1 min, sample rate set to 20 sec. This might be changed.
    Thanks.

    The performance counter type you're using is a simple counter. You should use rate counter instead. But the issue is that there's no per minute counter, by default the rate counters come as per second. Please check counter types from below MSDN page.
    https://msdn.microsoft.com/en-us/library/system.diagnostics.performancecountertype(v=vs.110).aspx

  • Some Performance Counters are not displayed in PerfMon

    I have SQL Server 2014 installed in my machine. I need to monitor some performance counters like \SQLServer:Database Mirroring\Log Send Queue KB. When I open the Add Counter dialog of PerfMon, the counter is displayed in the list. But when I add the
    counter and click OK, the counter is not seen added to the list of counters to be monitored. Any one can tell me why this happens? The same issue is there for some other counters like Replication Dist.\Dist:Delivery Latency. My OS is Windows Server Standard

    Ok I understand, but you would need at least 2 instances of SQL. 
    http://www.mssqltips.com/sqlservertip/2464/configure-sql-server-database-mirroring-using-ssms/
    http://www.codeproject.com/Articles/715550/SQL-Server-Replication-Step-by-Step
    Its would be more easy for you, if you have server with these setups in your environment to check counters /or run your program there to test.

  • Error 25211. Failed to install performance counters while trying to remove a 2012 SP1 agent from system.

    I have a system that has the "Repair and Uninstall" options grayed out from the Management Server (2012 SP-1) and if I go to the system itself, I have tried repairing the Agent Installation (Does not work successfully) and I now am trying to "uninstall"
    the agent from the system.   I keep getting about 1/2 way through the uninstall and an error opens that "Cannot install performance counters".    The system is Windows 2003 Standard Edition SP2.   The system also
    has a SCOM 2007 directory locally that cannot be deleted because a log file is in use.  There are no other agents locally on the system through "Add / Remove Programs" within Control Panel.
    A little history. 
    We have two Environments (2012 R2 and the other 2012-SP1).  Some system were "Dual-Homed".   This one was not.  I am trying to uninstall the SP-1 agent so we can move it to the R2 environment.   It previously had MOM
    2005 agent tha was uninstalled and it appears to have had a 2007 agent installed at some point, but only the trace directory that I can find.
    I have tried rebuild commands for performance counter and it appears to be functioning correctly.

    Hi,
    Can you see the agent under pending management? You may upgrade the agent through the console.  
    When you upgrade an agent, the Operations Manager installer service runs and is not removed until after the completion of the upgrade. If the agent upgrade fails, you might have to re-install the agent because the installer service was not properly removed.
    If you attempt to upgrade the agent again and it fails, you should re-install the agent after you have completed upgrading all features of Operations Manager.
    After rebuilding performance counter by following the link below, you may try to uninstall the agent and check the result:
    http://support.microsoft.com/kb/300956/en-us
    Regards,
    Yan Li
    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 Subscriber Support, contact [email protected]

  • How 2 pass a request from a broswer to remote server via a proxy server

    hi my program is on a proxy server it will be lisenting in port 9876
    i have configured in a way that all browsers request pass thro this proxy server
    so when user request for www.yahoo.com in the browser the
    resquest is passed 2 this proxy server. so i got the host name and created a socket.
    i read all the request that has come from the browser such as "GET www.yahoo.com HTTP/1.1 ,,"
    I got the outputstream for the remote socket and i passed all these request to the remote host.. but i could nt get any response frm server can any one help me out?
    ===
    import java.io.*;
    import java.net.*;
    class Proxyserver
    ServerSocket ser;
    Socket myclient;
    BufferedReader br;
    String cf1="\r\n",cf2="\r\n\n",lf="\n";
    OutputStream o_remote;
    public Proxyserver()
    try
    ser=new ServerSocket(9876);
    myclient=ser.accept();
    // read inital requst from browser
    br=new BufferedReader(new InputStreamReader(myclient.getInputStream()));
    String req=br.readLine();
    String temp=req;
    int val=temp.indexOf((int)'/',11);
    String host=req.substring(11,val);
    //connect 2 host
    Socket remote=new Socket(host,80);
    System.out.println(remote.toString());
    o_remote=remote.getOutputStream();
    while(req!=null)
    System.out.println(req);
    o_remote.write(req.getBytes(),0, req.length());
    o_remote.write(cf2.getBytes());
    o_remote.flush();
    req=br.readLine();
    o_remote.write(lf.getBytes());
    o_remote.write(lf.getBytes());
    o_remote.flush();
    // wait for response from remote server
    InputStream in=remote.getInputStream();
    int response=in.read();
    while(response!=-1)
    System.out.println((char)response);
    response=in.read();
    //close all sockets
    remote.close();
    myclient.close();
    ser.close();
    }catch(Exception e){}
    public static void main(String a[])
    new Proxyserver();
    ===
    op i got all the req from the broswer and wrote 2 op stream of remote server but i could nt get the response
    ==
    output"
    Socket[addr=javaworld.com/130.94.4.230,port=80,localport=3225]
    GET http://javaworld.com/ HTTP/1.0
    Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
    Accept-Language: en-us
    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.4322)
    Host: javaworld.com
    Proxy-Connection: Keep-Alive

    Hi
    Just look for JspSmartUpload classes ..
    this will help u
    U can use
    <input type=file name=f >
    thanks
    regds

Maybe you are looking for