Java monitor bytecode

I'm trying to find out if monitorenter/monitorexit bytecodes can work across methods using any standard type of JVM. I'm not sure but it looks like java compiler automatically puts in the code to catch/rethrow exceptions & exit the monitor if one happens to occur in a synchronized block. Does anyone know if this is true? Has anyone tried doing this before?
Thanks in advance.

The VM spec says:
Normally, a compiler for the Java programming language ensures that the lock operation implemented by a monitorenter instruction executed prior to the execution of the body of the synchronized statement is matched by an unlock operation implemented by a monitorexit instruction whenever the synchronized statement completes, whether completion is normal or abrupt.
So it seems that you should be able to get away with whatever evil trickery you plan. Good luck, and please don't use it in production code.

Similar Messages

  • Using java monitor

    Hi. I'm trying to learn how to use and manage the java monitor, but in this case I cannot understand the behaviour. I create some threads instances of a class with this run() method:
    public synchronized void run()
       while (!free) {try {this.wait();} catch (InterruptedException e) {}}
       free = false;
       // Show some text...
       free = true;
       notify();
    ...free is a boolean, and I would like each thread to run in mutual exclusion. free is at the beginning false. The problem is that after the end of the first thread, no other thread is started by notify(). Shouldn't the notify allow some other thread to reconsider the condition (!free)?
    Thanks for any explaination.

    I do need the threads to communicate. The fact is that I simplified the thing just to understand better responses from you :). The real problem is more complicated. I have a arbitrary number of threads of two different classes. These threads have to access a shared resource (I used the boolean free). Moreover I have to give precedence to one of these two classes. So, I used to integers to represent two queues. The fact is that only the first thread to be ran reaches the end. The others, I saw, reach the wait() method, but then they stops and the program does not finish.
    I mean that I thought this: the first thread to reach the wait() passes. Then, this first thread starts to use the resource (free becomes false). Every other thread which reach the while(...) stops there (there is the wait()). Then the first process, at a particular time, release the resource (free = true) and communicate this to another thread which was stuck at the wait() instruction (through the notify()). The problem I see is that every thread reach the wait() and stops there. After the first one is finished, no more... The notify() does not give the monitor to another thread (which would find free = true). This is my problem. Do you understand?
    Many thanks for yuor answer anyway.

  • Java Monitor in NWA - Sessions chart

    I'm having trouble understanding the Sessions chart in NWA for the Java Monitor.  I would like to know what the InvalidSessionCount key figure is all about.  I can understand ActiveSessionsCount and LogoffSessionsCound, but what does InvalidSessionsCount mean.  Ours seem to grow rather quickly (much higher than our ActiveSessionsCount) and I need some help understanding what action I need to take (if any).
    thanks
    Eric

    Eric,
    Basically this monitor shows the number of sessions that have been invalidated and not yet garbage collected. Unfortunately the java applications have no control of the time when the garbage collector will be run -  this is decided by the JVM itself, but if the memory occupied by these objects is needed they will be garbage collected. When the memory utilization reaches the MaxHeapSize or MaxPermSize limit, Full GC is triggered
    by the JVM which reclaims the memory from the dead objects and the space is freed.
    So, as long as you don't experience performance issues you can relax!
    Cheers!
    Bidwan

  • Optimal configurations for webobjects using Java Monitor

    Can someone please let me know the optimal configurations for webobjects? We need details on the number of instances which can be created per cpu on the application server. Please also provide information on the thread configurations per instance in java monitor.

    I do need the threads to communicate. The fact is that I simplified the thing just to understand better responses from you :). The real problem is more complicated. I have a arbitrary number of threads of two different classes. These threads have to access a shared resource (I used the boolean free). Moreover I have to give precedence to one of these two classes. So, I used to integers to represent two queues. The fact is that only the first thread to be ran reaches the end. The others, I saw, reach the wait() method, but then they stops and the program does not finish.
    I mean that I thought this: the first thread to reach the wait() passes. Then, this first thread starts to use the resource (free becomes false). Every other thread which reach the while(...) stops there (there is the wait()). Then the first process, at a particular time, release the resource (free = true) and communicate this to another thread which was stuck at the wait() instruction (through the notify()). The problem I see is that every thread reach the wait() and stops there. After the first one is finished, no more... The notify() does not give the monitor to another thread (which would find free = true). This is my problem. Do you understand?
    Many thanks for yuor answer anyway.

  • Java monitoring

    Hi Experts,
                          Can any one tell me how to monitor java stack, pls provide any material or sugess any URL's which provide information.
    Thanks,
    PK

    Hi,
    We have several options for Java monitoring,
    http://<hostname>:<portno>/nwa
    ex: http://dev6546:50000/nwa
    Visual Administrator
    usr\sap\SID\DVEBMGS00\j2ee\admin execute go.bat
    Regards,
    Phani
    Edited by: DSPKUMAR on Oct 1, 2010 12:48 PM

  • Java Monitoring and Administration

    Hi;
    I want to know the documents\ references for Java monitoring and Administration.
    Thanks in advance.
    Regards,
    Rahul.

    Hi,
    You can check the following links :-
    1> www.service.sap.com - OSS ID and password
    2> Look for topics like ... Visual Admin, Config tool - properties sheet, JCO connections, portal template and ume configuration.
    Do let me specifically what exactly you want to configure on j2ee. Shall help you on same.
    1) Activities for Content Consumers
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/22387b0b413fe1e10000000a11466f/frameset.htm
    2) Activities for Content Producers
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/22387b0b413fe1e10000000a11466f/frameset.htm
    3) Workflow: Remote Role Assignment
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/23fd33cad10d23e10000000a1553f7/frameset.htm
    4) Configure Remote Role Assignment
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/2dd5abcd-0b01-0010-2c92-81b9f8efc2e1
    Regards,
    Manomeet

  • Host & Java monitoring returns grey entries solman 7.1 SP10

    Hello SAP,
    We have configured system monitoring in Solution Manager 7.1 SP10 system.
    Monitoring data for database and ABAP technical instance is getting captured and available in system/database monitoring in technical monitoring work center.
    But host monitoring not working for both ABAP and Java systems and technical instance of Java data not capturing, shows grey entries.
    We have followed and implemented the SAP note:
    1853160 - Grey host metrics in Technical Monitoring
    1855064 - Error occurred when calling the DPC Push web service
    1638655 - Errors with requests coming from ICM
    But still the host monitoring and Java system details are not working in Technical Monitoring.
    We have noticed below error message on Diagnostic Agent log files:
    Jul 18, 2014 2:23:40 AM [Thread[ExRun:dpc:job_3,5,dpc:job:ExecTG]] Error      [DPCServicePushMetricJob.pushSimpleEvents] Error occurred when calling the DPC Push web service. (http://xxxxxxxx:8000/sap/bc/srt/scs/sap/e2e_dpc_push?sap-client=030).
    [EXCEPTION]
    java.rmi.RemoteException: Service call exception; nested exception is:
            com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (404) Not found. The request URL was:"http://xxxxxxxx:8000/sap/bc/srt/scs/sap/e2e_dpc_push?sap-client=xxx". Check, whether the URL is correct, and the Web Service that you are requesting is up and running.
            at com.sap.smd.agent.wsclients.dpc.BindingStub.e2eDpcPushMetrics(BindingStub.java:85)
            at com.sap.smd.agent.wsclients.dpc.BindingStub.e2eDpcPushMetrics(BindingStub.java:96)
            at sun.reflect.GeneratedMethodAccessor39576.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at com.sap.smd.api.util.SynchronizedProxy$SyncHandler.invoke(SynchronizedProxy.java:32)
            at $Proxy37.e2eDpcPushMetrics(Unknown Source)
            at com.sap.smd.dpc.job.DPCServicePushMetricJob.pushSimpleEvents(DPCServicePushMetricJob.java:122)
            at com.sap.smd.dpc.job.DPCServicePushMetricJob.run(DPCServicePushMetricJob.java:66)
            at com.sap.smd.server.exec.TaskRunner.run(TaskRunner.java:46)
            at com.sap.smd.server.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:785)
            at java.lang.Thread.run(Thread.java:722)
    Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (404) Not found. The request URL was:"http://xxxxxxxx.:8000/sap/bc/srt/scs/sap/e2e_dpc_push?sap-client=xxx". Check, whether the URL is correct, and the Web Service that you are requesting is up and running.
            at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.handleResponseMessage(MimeHttpBinding.java:998)
            at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1452)
            at com.sap.smd.agent.wsclients.dpc.BindingStub.e2eDpcPushMetrics(BindingStub.java:78)
            ... 11 more
    Request you to look into this and advice us to correct the issue
    Thanks,
    Vamshi

    Thank you Divyanshu,
    Please find the Host agent logs and profile details .
    1. Host Agent logs:
    trc file: "dev_saphostexec", trc level: 3, release: "720"
    SAPHOSTAGENT information
    kernel release                720
    kernel make variant           720_REL
    compiled on                   AIX 2 5 00092901D600 for rs6000_64
    compiled for                  64 BIT
    compilation mode              Non-Unicode
    compile time                  Jan 25 2014 06:32:12
    patch number                  178
    latest change number          1470842
    supported environment
    operating system
    AIX 2 5
    AIX 3 5
    AIX 1 6
    AIX 1 7
    [Thr 01] Sat May 17 08:31:13 2014
    [Thr 01] update env : PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/sap/<SID>/DVEBMGSxx/exe/sapjvm_4/bin:/etc:/usr/ucb:/usr/bin/X11:/
    usr/java14/jre/bin:/usr/java14/bin:/usr/local/bin:/etc:/usr/ucb:/home/<SID>adm/bin:/usr/bin/X11:/usr/sap/<SID>/SYS/exe/uc/rs6000_
    64:/usr/sap/<SID>/SYS/exe/run:/home/<SID>adm:.:/db2/db2<SID>/sqllib/bin:/db2/db2<SID>/sqllib/adm:/db2/db2<SID>/sqllib/misc:
    [Thr 01] update env : LIBPATH=/usr/sap/hostctrl/exe
    [Thr 01] _=/usr/sap/hostctrl/exe/hostexecstart
    [Thr 01] MANPATH=/opt/tectia/man:
    [Thr 01] LANG=en_US
    [Thr 01] WSM_WS_CMD="startsrc -s http4websm"
    [Thr 01] LOGIN=<SID>adm
    [Thr 01] PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/sap/<SID>/DVEBMGSxx/exe/sapjvm_4/bin:/etc:/usr/ucb:/usr/bin/X11:/usr/java14/jr
    e/bin:/usr/java14/bin:/usr/local/bin:/etc:/usr/ucb:/home/<SID>adm/bin:/usr/bin/X11:/usr/sap/<SID>/SYS/exe/uc/rs6000_64:/usr/sap/S
    MP/SYS/exe/run:/home/<SID>adm:.:/db2/db2<SID>/sqllib/bin:/db2/db2<SID>/sqllib/adm:/db2/db2<SID>/sqllib/misc:
    [Thr 01] RES_RETRY=2
    [Thr 01] RSEC_SSFS_KEYPATH=/usr/sap/<SID>/SYS/global/security/rsecssfs/key
    [Thr 01] LC__FASTMSG=true
    [Thr 01] CLASSPATH=:/db2/db2<SID>/sqllib/java/db2java.zip:/db2/db2<SID>/sqllib/java/runtime.zip:.
    [Thr 01] LOGNAME=<SID>adm
    [Thr 01] RES_TIMEOUT=2
    [Thr 01] dbs_db6_user=sap<SID>
    [Thr 01] MAIL=/usr/spool/mail/<SID>adm
    [Thr 01] DSMI_CONFIG=/usr/tivoli/tsm/client/api/bin64/dsm.opt
    [Thr 01] LOCPATH=/usr/lib/nls/loc
    [Thr 01] PS1=uahris12:<SID>adm> 
    [Thr 01] DIR_LIBRARY=/usr/sap/<SID>/SYS/exe/run
    [Thr 01] WSM_DOC_DIR="/usr/websm/http/com.ibm.websm.http.server_1.0.0"
    [Thr 01] USER=<SID>adm
    [Thr 01] AUTHSTATE=compat
    [Thr 01] DSM_LOG=/db2/db2<SID>/errors
    [Thr 01] IBM_JAVA_OPTIONS=-Xmx256M -Xj9
    [Thr 01] SHELL=/usr/bin/ksh
    [Thr 01] ODMDIR=/etc/objrepos
    [Thr 01] CASHCOMP=/opt/CA/SharedComponents
    [Thr 01] JAVA_HOME=/usr/sap/<SID>/DVEBMGSxx/exe/sapjvm_4
    [Thr 01] TIMEOUT=900
    [Thr 01] TMOUT=900
    [Thr 01] DSMI_LOG=/db2/db2<SID>/errors
    [Thr 01] dbs_db6_schema=sap<SID>
    [Thr 01] RSEC_SSFS_DATAPATH=/usr/sap/<SID>/SYS/global/security/rsecssfs/data
    [Thr 01] HOME=/home/<SID>adm
    [Thr 01] DB2INSTANCE=db2<SID>
    [Thr 01] TERM=vt100
    [Thr 01] MAILMSG=[YOU HAVE NEW MAIL]
    [Thr 01] DSM_DIR=/usr/tivoli/tsm/client/ba/bin
    [Thr 01] rsdb_ssfs_connect=0
    [Thr 01] DB2DBDFT=<SID>
    [Thr 01] PWD=/home/<SID>adm
    [Thr 01] TZ=EST5EDT
    [Thr 01] dbms_type=db6
    [Thr 01] AIXTHREAD_SCOPE=S
    [Thr 01] WSM_CGI_DIR=
    [Thr 01] SAPSYSTEMNAME=<SID>
    [Thr 01] DSM_CONFIG=/usr/tivoli/tsm/client/ba/bin/dsm.opt
    [Thr 01] DSMI_DIR=/usr/tivoli/tsm/client/api/bin64
    [Thr 01] INSTHOME=/db2/db2<SID>
    [Thr 01] A__z=! LOGNAME="*TMOUT
    [Thr 01] NODNSSAPTRANSHOST=1
    [Thr 01] LIBPATH=/usr/sap/hostctrl/exe
    [Thr 01] **** Create a deamon **********
    trc file: "dev_saphostexec", trc level: 3, release: "720"
    [Thr 01] Sat May 17 08:31:13 2014
    [Thr 01] ##############################################################
    [Thr 01] saphostexec restarted as daemon with tracelevel 1
    [Thr 01] ##############################################################
    [Thr 01] SigISetDefaultAction : default handling for signal SIGCHLD
    [Thr 01] Setup autoupgrade with following path:
    [Thr 01] source='/usr/sap/hostctrl/exe'
    [Thr 01] upgrade='/usr/sap/hostctrl/exe/../new'
    [Thr 01] * Environment of /usr/sap/hostctrl/exe/sapstartsrv process *
    [Thr 01] _=/usr/sap/hostctrl/exe/hostexecstart
    [Thr 01] MANPATH=/opt/tectia/man:
    [Thr 01] LANG=en_US
    [Thr 01] WSM_WS_CMD="startsrc -s http4websm"
    [Thr 01] LOGIN=<SID>adm
    [Thr 01] PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/sap/<SID>/DVEBMGSxx/exe/sapjvm_4/bin:/etc:/usr/ucb:/usr/bin/X11:/usr/java14/jr
    e/bin:/usr/java14/bin:/usr/local/bin:/etc:/usr/ucb:/home/<SID>adm/bin:/usr/bin/X11:/usr/sap/<SID>/SYS/exe/uc/rs6000_64:/usr/sap/S
    MP/SYS/exe/run:/home/<SID>adm:.:/db2/db2<SID>/sqllib/bin:/db2/db2<SID>/sqllib/adm:/db2/db2<SID>/sqllib/misc:
    [Thr 01] RES_RETRY=2
    [Thr 01] RSEC_SSFS_KEYPATH=/usr/sap/<SID>/SYS/global/security/rsecssfs/key
    [Thr 01] LC__FASTMSG=true
    [Thr 01] CLASSPATH=:/db2/db2<SID>/sqllib/java/db2java.zip:/db2/db2<SID>/sqllib/java/runtime.zip:.
    [Thr 01] LOGNAME=sapadm
    [Thr 01] RES_TIMEOUT=2
    [Thr 01] dbs_db6_user=sap<SID>
    [Thr 01] MAIL=/usr/spool/mail/<SID>adm
    [Thr 01] DSMI_CONFIG=/usr/tivoli/tsm/client/api/bin64/dsm.opt
    [Thr 01] LOCPATH=/usr/lib/nls/loc
    [Thr 01] PS1=uahris12:<SID>adm> 
    [Thr 01] DIR_LIBRARY=/usr/sap/<SID>/SYS/exe/run
    [Thr 01] WSM_DOC_DIR="/usr/websm/http/com.ibm.websm.http.server_1.0.0"
    [Thr 01] USER=sapadm
    [Thr 01] AUTHSTATE=compat
    [Thr 01] DSM_LOG=/db2/db2<SID>/errors
    [Thr 01] IBM_JAVA_OPTIONS=-Xmx256M -Xj9
    [Thr 01] SHELL=/usr/bin/ksh
    [Thr 01] ODMDIR=/etc/objrepos
    [Thr 01] CASHCOMP=/opt/CA/SharedComponents
    [Thr 01] JAVA_HOME=/usr/sap/<SID>/DVEBMGSxx/exe/sapjvm_4
    [Thr 01] TIMEOUT=900
    [Thr 01] TMOUT=900
    [Thr 01] DSMI_LOG=/db2/db2<SID>/errors
    [Thr 01] dbs_db6_schema=sap<SID>
    [Thr 01] RSEC_SSFS_DATAPATH=/usr/sap/<SID>/SYS/global/security/rsecssfs/data
    [Thr 01] HOME=/home/sapadm
    [Thr 01] DB2INSTANCE=db2<SID>
    [Thr 01] TERM=vt100
    [Thr 01] MAILMSG=[YOU HAVE NEW MAIL]
    [Thr 01] DSM_DIR=/usr/tivoli/tsm/client/ba/bin
    [Thr 01] rsdb_ssfs_connect=0
    [Thr 01] DB2DBDFT=<SID>
    [Thr 01] PWD=/home/<SID>adm
    [Thr 01] TZ=EST5EDT
    [Thr 01] dbms_type=db6
    [Thr 01] AIXTHREAD_SCOPE=S
    [Thr 01] WSM_CGI_DIR=
    [Thr 01] SAPSYSTEMNAME=<SID>
    [Thr 01] DSM_CONFIG=/usr/tivoli/tsm/client/ba/bin/dsm.opt
    [Thr 01] DSMI_DIR=/usr/tivoli/tsm/client/api/bin64
    [Thr 01] INSTHOME=/db2/db2<SID>
    [Thr 01] A__z=! LOGNAME="*TMOUT
    [Thr 01] NODNSSAPTRANSHOST=1
    [Thr 01] LIBPATH=/usr/sap/hostctrl/exe
    [Thr 01] USERNAME=sapadm
    2. Host Agent profile:
    SAPSYSTEMNAME = SAP
    SAPSYSTEM = 99
    service/porttypes = SAPHostControl NwaManagement SAPCCMS SAPOscol
    #service/porttypes = SAPHostControl SAPOscol SAPCCMS
    service/admin_users = diaadm
    DIR_LIBRARY = /usr/sap/hostctrl/exe
    DIR_EXECUTABLE = /usr/sap/hostctrl/exe
    DIR_PROFILE = /usr/sap/hostctrl/exe
    DIR_GLOBAL = /usr/sap/hostctrl/exe
    DIR_INSTANCE = /usr/sap/hostctrl/exe
    DIR_HOME = /usr/sap/hostctrl/work
    service/logfile_000 = /tmp/s
    service/logfile_001 = /usr/sap/<SID>/DVEBMGSxx/j2ee/cluster/dispatcher/log/applications*.log
    service/logfile_002 = /usr/sap/<SID>/DVEBMGSxx/j2ee/cluster/dispatcher/log/applications.*.log
    service/logfile_003 = /usr/sap/<SID>/DVEBMGSxx/j2ee/cluster/dispatcher/log/defaultTrace*.trc
    service/logfile_004 = /usr/sap/<SID>/DVEBMGSxx/j2ee/cluster/dispatcher/log/defaultTrace.*.trc
    service/logfile_005 = /usr/sap/<SID>/DVEBMGSxx/j2ee/cluster/server0/log/applications*.log
    service/logfile_006 = /usr/sap/<SID>/DVEBMGSxx/j2ee/cluster/server0/log/applications.*.log
    service/logfile_007 = /usr/sap/<SID>/DVEBMGSxx/j2ee/cluster/server0/log/applications/com.sap.xi/xi*.log
    service/logfile_008 = /usr/sap/<SID>/DVEBMGSxx/j2ee/cluster/server0/log/applications/com.sap.xi/xi.*.log
    service/logfile_009 = /usr/sap/<SID>/DVEBMGSxx/j2ee/cluster/server0/log/defaultTrace*.trc
    service/logfile_010 = /usr/sap/<SID>/DVEBMGSxx/j2ee/cluster/server0/log/defaultTrace.*.trc
    Thanks  Vamshi.

  • Java Monitoring / Tweaking

    Has anyone ever done any monitoring with java, i need to creating a "Windows Task manager" with it. Showing the CPU usage, physical memory... and so on, where is the task manager getting that data from? it is storing it in a system variable ( I would say ya), if so would it be hard for java to implement that data??
    Anyone have any open sorce for any monitoring / tweaking programs (Window/Linux, doesn't matter), i really want to learn how others are doing this kind of stuff.

    If you want to monitor a Java program and you can use J2SE 5.0 you can try the jconsole program. (You'll need to start your Java program with the parameter -Dcom.sun.management.jmxremote )
    If you want to monitor a system that can be monitored via SNMP (hint: if the system can be monitored using IBM Tivoli or CA Unicenter, you can monitor a lot of such variables), you can try some SNMP client, like joe-snmp.

  • What kind of java monitoring tools are vailable for v1.4.2_11?

    Hi folks,
    I've spent a lot of time in the HPUX environment, but now I'm working in Solaris mostly. Unfortunately, we are having a problem with a java application that is hard to pin-point. Do you know of any Sun tools available to instrument, and or monitor a java application and tell us where it's spending most of it's CPU time? (or possibly how much of certain system calls it's running and spending time in?). We're running:
    ./java -version
    java version "1.4.2_11"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_11-b06)
    Java HotSpot(TM) Client VM (build 1.4.2_11-b06, mixed mode)
    In a nutshell, the problem is this....we run a java application in a VCS cluster, which just means that it has the potential to run on one of three possible systems. When the application is housed in a shared disk area that is moved to one particular server, then mounted. On one server, the java application runs 3x slower, but it pegs the cpu at 100%. On the other nodes, it runs at about 20% cpu, and it's out put is super fast. We have undergone an extremely detailed "ha" audit of the OS and cluster configurations, and we find that they are identical. (I used to design and consult with HP for their cluster implementations). I was able to gather some rudimentary OS statistics on java by running the "truss -cal -p <java pid>" command on both systems (good vs. bad). This revealed something strange: that on the bad system, nearly 90% of the system calls java made were "yield". On the good system, about .5% of the system calls were "yield".
    Other than that, I'm stumped. Now I'm looking for ways to instrument and monitor the JVM to help pinpoint what the JVM is doing..
    Any help is greatly appreciated.
    Thank you.
    Pete (PDQ)
    [email protected]

    There should be a working hprof on 1.4.
    http://java.sun.com/j2se/1.4.2/docs/guide/jvmpi/jvmpi.html#hprof

  • Develop application for java  Monitoring and Management

    hi
    i would like to develop an application that enables me to monitor and manage Java applications and instead of using jconsole ormc4j
    please can you tell mz how to start

    The various general JMX clients such JConsole, [MC4J|http://mc4j.org/confluence/display/mc4j/Home] (the tool referenced with "or mc4j" above), VisualVM, and jManage all use the same approach for remote JMX management that you can use ([JSR 160|http://jcp.org/en/jsr/detail?id=160]).
    Some useful resources include the [Java Tutorial on JMX Remote Management|http://java.sun.com/docs/books/tutorial/jmx/remote/index.html], [Remote JMX: Connectors and Adapters|http://marxsoftware.blogspot.com/2008/08/remote-jmx-connectors-and-adapters.html], and [Remote JMX: With and Without Spring and Proxies|http://marxsoftware.blogspot.com/2008/06/remote-jmx-with-and-without-spring-and.html] (focus on non-Spring clients with and without proxies).

  • Java Monitoring - Displaying MBeans in the Visual Administrator

    Hi Experts,
    concerning monitoring of java applications. I am trying following:
    BroadcastingStandardMBeanWrapper wrapper = null;
    wrapper = new BroadcastingStandardMBeanWrapper(mBean, null, p);
    mbs.registerMBean(wrapper, monitoringObjectName);      
    cause I want my MBean to be displayed as a node in the Visual Administrator.
    But it doesn't work like it is supposed in [Sap help|http://help.sap.com/saphelp_nw70/helpdata/de/47/30c6348479784c9482c70acd52b6da/frameset.htm]
    Thanks for any help!!!!
    Mirko

    Hey,
    I'm also facing the same problem, Can someone explain more about a way to solve it and in the visual admin where should I see the result (my Mbean)
    Thanks

  • Solman - Java Monitoring

    Chaps,
    We are looking at using the Java stack in solution manager. At the moment we are just using the ABAP stack for basic RZ20 monitoring / alerting etc. Typically what scenarios would you use the Java stack for, what would you momitor ? I am keen to hear of anyone else out there that is activily using the java stack .....
    Thanks guys

    Nick
    whatever you monitor in ABAP stack (as seen performance wise), same you can do for Java Stack too. Like you get EWA for ABAP systems in Solution Manager, and then analyze and implement various recommendations, same can be done for Java Stack too.
    and the Monitoring the Java Stack 'Links' by ccms, CCMS for Java Stack, refer the diagnostics link on marketplace for every details
    987835 - How to define Solutions in SMSY for Diagnostics
    976054 - Availability of EWA for Non ABAP components
    http://service.sap.com/diagnosctics and Monitoring section of SDN, for availability monitoring and GRMG monitoring
    Setting Up your Central Monitoring [original link is broken]

  • Java monitoring idea

    Hi,
    Im doing an investigation into systems monitoring and management. In case of Java I read about JMX and possible solutions with it. Im generally up to generic monitoring of SOA services ( not specifially WS standards, but also REST etc ). Is it a common technique to incorporate JMX using AoP to the app and distribute it with let's say OSGi framework into the system? What do you think, what are your experiences. Ill be very happy to hear from life experience. ( Im academic ).

    On this stage Im looking into possibilities to monitor SOA services. The system is not yet designed, what means that it is not sure, whether it will use WS-* or only REST, for sure not both. What is to think about is the monitoring of execution of services, they will be also designed in a specific way to enable it. I am searching for a way to monitor/manage services with features:
    - no interaction in the code of services
    - multiple transports involved ( SNMP, JMX, SOAP, REST ) for monitoring interfaces exposing to NMS
    - easy automatic deployment of monitoring agents ( automatic is for me - easy to make it automatic)
    What I am into is the research on monitotring/management solutions, now I search for it in Java world and for Java infrastructure. Sorry for buzzword mess ;)
    This is just a post aiming to hear how java people do it, common practices. Documentation and publications is not everything, people choose software to use.

  • Illegal java monitor exception

    hi all,
    i am making an application in which i am receiving live data from from server and i am storing that data into hashtable through one thread then i am reading data from the same hashtable through another thread and wans to display upon applet now the problem is that i am getting
    Exception in thread "Thread-4" java.lang.IllegalMonitorStateException: current thread not owner
    at java.lang.Object.notify(Native Method)
    at Test1$2.execute(Test1.java:102)
    at Test1$2.run(Test1.java:73)etting exception

    I believe in your current code the synchronized/wait/notify mechanism is decentralized and dispersed among accessor objects of the required data. You should centralize it for the peace of your life.
    /* pseudo code */
    public class MyDataStore{
      private Hashtable data;
      public synchronized Boo getData(Object key){
        while (data is empty){
          wait();
        return data.get(key); // may return null
      // etc.
    }

  • Java Monitoring API

    Hi,
      Where can I get <b>jmonapi.jar</b> from service.sap.com?
    regards,
    Nagarjuna

    Nagarjuna
    I have had a quick look on oss and it is available but you need to select o/s version.
    You can download the JMonAPI from the SAP Service Marketplace. The archive is in the same path as the archive for the CCMS agents (see Downloading the CCMS Agents). You can identify the status from the file name of the archive (JMON_<Patchlevel>_..).
    I searched for JMON on swdc and got 22 results back...
    go to http://service.sap.com/swdc and search for all categories for JMON.
    Here is some documentation
    https://dsd.esco-salt.com/StartPage/documents/admin/30.html
    Also see oss notes: http://service.sap.com/form/handler?_APP=01100107900000000342&_EVENT=DISPL_TXT&_NNUM=547024, http://service.sap.com/form/handler?_APP=01100107900000000342&_EVENT=DISPL_TXT&_NNUM=657143 and http://service.sap.com/~form/handler?_APP=01100107900000000342&_EVENT=DISPL_TXT&_NNUM=516920
    Good luck.
    Message was edited by: Barry Neaves

Maybe you are looking for

  • Hi actually I want to tell you I didn't get my refund yet.

    Hi actually I want to tell you I didn't get my refund yet. I am sending you the invoice. Please refund the money. Because the company I did contact with they said to contact to you. Please help me out to refund my money. On 10/07/2013, at 9:35 AM, iT

  • How to get previous day data if i dont have current day data.

    Hello Gurus, I have a stock levels data in ODS. when there is no movements, we are not getting any stocks into ODS. So we have to get previous day data as it is for current day data into another ODS. Could you please help me in this regard. Thanks in

  • Excise inv num interval

    I am tryin to create an excise invoice and I am gettin the following error pls assist in resolution of the same "Error in allocating excise invoice num interval not found number object J_1Iexcloc" Regards MAddy

  • Delete Apple Watch, Podcasts, Ibooks etc?

    Yet again another update adding apps I don't want and wont use!  Anyway to get rid of them ive tried the privacy thing but it just deletes my app store!  I will never use Ibooks, podcasts, health or apple watch yet they are sat there using memory up

  • About printing

    i am making a system for my friend. this system is already finished. the system is used for storing the custom information.... i want to add a funion that ... for e.g. the system have name:mary lee phone:95684527 computer: p4 2.6 asus mother board i