EJB Method Response Time

Hello All,
Is there any way to get the response time (min, max and avg) for each EJB method
call? There was a way to do this BEA Tuxedo, does WLS 7.x provide any way for
such profiling?
Thanks in advance.
rgds
MS

Hello All,
Is there any way to get the response time (min, max and avg) for each EJB method
call? There was a way to do this BEA Tuxedo, does WLS 7.x provide any way for
such profiling?
Thanks in advance.
rgds
MS

Similar Messages

  • EJB slow response time in cluster

    We have 2 clusters : cluster 1(3 managed servers) and cluster2( 2 managed servers). We have an EJB deployed on cluster2 which is being called by an application on cluster1. Issue is that this EJB gives a very slow response time (in the order of minutes). There are no errors or exceptions in the logs.
    When we shut down one of the nodes on cluster2, the respose from the same EJB is very fast. Please help as to where we should look out for the issue?

    Could be that you have a network configuration problem. The source of the problem is how host names and IP addresses are resolved,
    and there is a workaround. RMI and other naming services use the InetAddress class to obtain resolved host names and IP addresses.
    InetAddress caches lookup results to improve subsequent calls, but when it is passed a new IP address or host name, it performs a
    cross-reference between the IP address and the host name to prevent address spoofing. If you supply the host name as an IP address,
    InetAddress still tries to verify the name of the host. To workaround this problem, include the host name and IP address in the
    hosts file on the client, for example,
    127.0.0.1           localhost
    172.30.0.129      SomeWebLogicServerHostName
    172.30.0.130      SomeOtherWebLogicServerHostName

  • Reg Increasing the EJB Response Time

    We are facing below performance problems in our application,
    1. Response time from EJB (Stateless Session Bean) to Client (Swing).
    2. Time taken for looping through the Result Set.
    For 5000 records, our query is taking 0.2 Secs but looping through the ResultSet is taking around 16 seconds and Response time for transferring 160 kb (object data) from EJB to Client is taking around 30 Secs.
    We have achieved some improvement in ResultSet looping time by setting the setFetchSize of ResultSet to 250.
    Can anyone suggest?
    1. Is there any way to increase the Data Transfer time (Response time) from EJB to Client?
    2. What is the ideal value for setting the value for ResultSet.setFetchSize() ( No of records we fetch vary from 1 � 3,00,000 records)

    1. Response time from EJB (Stateless Session Bean) to
    Client (Swing). Consider non-EJB options. They might prove efficient in your case.
    2. Time taken for looping through the Result Set. Try and design your code as to not require all the records at a time.
    For 5000 records, our query is taking 0.2 Secs but
    looping through the ResultSet is taking around 16
    seconds and Response time for transferring 160 kb
    (object data) from EJB to Client is taking around 30
    Secs.
    We have achieved some improvement in ResultSet
    looping time by setting the setFetchSize of ResultSet
    to 250. There is a limit to what you can achieve with that.
    Can anyone suggest?
    1. Is there any way to increase the Data Transfer
    time (Response time) from EJB to Client? I suppose you would want to reduce the response time.
    2. What is the ideal value for setting the value for
    ResultSet.setFetchSize() ( No of records we fetch
    vary from 1 � 3,00,000 records)
    shrug

  • Response time of a function module

    Hi Friends,
        I'm creating a cutom program where i was using a BAPI ,which exist in other server.
       Now i want to record the response time of the BAPI , after placing the  request in it and display the Time for the 
       corresponding record in output.
      Is there any procedure to record the response time in the program / I'm not asking the transactions where we can  
      measure the performances.
    Moderator message - please do not ask for or promise rewards.
    Thanks & Warm Regards
    Krishna
    Edited by: Rob Burbank on Oct 1, 2009 8:50 AM

    Hello,
    The correct method, as pointed out in previous posts, is with GET RUN TIME. Note that this returns time in microseconds, so you may want to scale this up to a larger unit.
    As to the usefulness: it is perfectly legitimate to include time measurements in your program as long as this has a clear purpose, e.g. comparing response times between different remote systems, identifying erratic response times, etc. In that case I would advise you to also include some other measurement, e.g. the amount of data processed (whether you can do this and how depends on the BAPI, e.g. you could use the number of lines in the returned internal tables as a metric). If your time measurement creates separate log/trace records, then it would also be a good idea to have the option to enable and disable the time measurement.
    Regards,
    Mark

  • Coherence and EclipseLink - JTA Transaction Manager - slow response times

    A colleague and I are updating a transactional web service to use Coherence as an underlying L2 cache. The application has the following characteristics:
    Java 1.7
    Using Spring Framework 4.0.5
    EclipseLink 12.1.2
    TopLink grid 12.1.2
    Coherence 12.1.2
    javax.persistence 12.1.2
    The application is split, with a GAR in a WebLogic environment and the actual web service application deployed into IBM WebSphere 8.5.
    When we execute a GET from the server for a decently sized piece of data, the response time is roughly 20-25 seconds. From looking into DynaTrace, it appears that we're hitting a brick wall at the "calculateChanges" method within EclipseLink. Looking further, we appear to be having issues with the transaction manager but we're not sure what. If we have a local resource transaction manager, the response time is roughly 500 milliseconds for the exact same request. When the JTA transaction manager is involved, it's 20-25 seconds.
    Is there a recommendation on how to configure the transaction manager when incorporating Coherence into a web service application of this type?

    Hi Volker/Markus,
    Thanks a lot for the response.
    Yeah Volker, you are absolutely right. the 10-12 seconds happens when we have not used the transaction for several minutes...Looks like the transactions are moved away from the SAP buffer or something, in a very short time.
    and yes, the ABAP WP's are running in Pool 2 (*BASE) and the the JAVA server, I have set up in another memory pool of 7 GB's.
    I would say the performance of the JAVA part is much better than the ABAP part.
    Should I just remove the ABAP part of the SOLMAN from memory pool 2 and assign the JAVA/ABAP a separate huge memory pool  of say like 12-13 GB's.
    Will that likely to improve my performance??
    No, I have not deactivated RSDB_TDB in TCOLL from daily twice to weekly once on all systems on this box. It is running daily twice right now.
    Should I change it to weekly once on all the systems on this box?  How is that going to help me?? The only thinng I can think of is that it will save me some CPU utilization, as considerable CPU resources are needed for this program to run.
    But my CPU utilization is anyway only like 30 % average. Its a i570 hardware and right now running 5 CPU's.
    So you still think I should deactivate this job from daily twice to weekly once on all systems on this box??
    Markus, Did you open up any messages with SAP on this issue.?
    I remember working on the 3.2 version of soultion manager on change management and the response times very much better than this as compared to 4.0.
    Let me know guys and once again..thanks a lot for your help and valuable input.
    Abhi

  • Publishing EJBs takes more time in Oracle Weblogic 10.3 workshop

    Hi,
    We recently migrated from Weblogic 9.2 to Oracle Weblogic 10.3 workshop.
    I have a ejb project which has more than 30 ejb's(both entity and session ejbs).
    The problem is: whenever I modify the code inside a method and save, it builds the project automatically. After that when I try to publish the module, it takes around 5 - 10 minutes for publishing.
    Points to note are : The ejb I am modifying has reference to other (10 - 20) ejbs. Hence it takes more time for even for single ejb change.
    however, when i modify an ejb which has no reference to ejb, takes less time to publish.
    My question is : is there a way to reduce the publishing time in this scenario.
    Thanks in advance!

    There is a special forum for Workshop issues:
    Workshop
    Try there.

  • How to check which RFCs causing issues in the system and RFC response times

    Hi,
    We have an issue with the RFC response times in CRM and need investigstion. We need to know which Which RFCs causing issues and how we can solve the problems.
    Regards

    Hi,
    chek the below code
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_EXIST
    EXPORTING
    FILE = W_FILENAME
    RECEIVING
    RESULT = W_RESULT
    EXCEPTIONS
    CNTL_ERROR = 1
    ERROR_NO_GUI = 2
    WRONG_PARAMETER = 3
    NOT_SUPPORTED_BY_GUI = 4
    others = 5.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-* MSGNO WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    IF W_RESULT IS INITIAL.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_EXIST
    EXPORTING
    DIRECTORY = W_FILENAME
    RECEIVING
    RESULT = W_RESULT
    EXCEPTIONS
    CNTL_ERROR = 1
    ERROR_NO_GUI = 2
    WRONG_PARAMETER = 3
    NOT_SUPPORTED_BY_GUI = 4
    OTHERS = 5.
    IF SY-SUBRC <> 0.
    ENDIF.
    ENDIF.
    IF W_RESULT = 'X'.
    RC = '1'.
    ELSE.
    RC = '0'.
    ENDIF.
    reward if helpful.
    Regards,
    nagaraj

  • CRM_DNO_MONITOR field: initial response time

    Hi,
    In CRM_DNO_MONITOR we were able to see all the data except 'Initial Response time' of Service desk message.
    Kindly let us know, how to configure so that 'Initial Response time'  should be displayed in CRM_DNO_MONITOR.
    Thank you!

    Hello Jerome,
    understand better... sorry. Well unfortunately this value is not available in report CRM_DNO_SERVICE_MONITOR cause when you take a look to the structure used for the display table no field was created for that.
    If that's something YOU NEED to implemement: here is the procedure
    - do a structure append of CRMT_DNO_SERVICE_MONITOR to add field Initial Response Time - ZINITRESPTIME
    - Then Use Badi CRM_DNO_MONITOR to fill the column Initial Response Time for CRM_DNO_MONITOR Transaction
    In this Badi you can use Class: CL_DSMOP_REP_CRM, method:  get_first_react_time as done by SOLAR_EVAL.
    You should put a breakpoint in CL_DSMOP_REP_CRM->PREPARE_SIMPLE_OUTPUTLIST to see how standard handled that. That will definitely help u or the developer you might need
    Hope that helps,
    Regards,
    Khalil

  • Problem in using EJB 2.1 Timer Service

    Hi all,
    I need a method in my EJB to be called by the EJB container at regular intervals. For this I plan to use the EJB 2.1 Timer Service.
    I did the following for implementing the Timer Service.
    1. My bean class implements the TimedObject interface. Thus the method ejbTimeout(Timer t) will be called by the container according to the interval I define in the timer.
    2. For defining a timer, I have created a business method in the EJB which creates a Timer object with the timer service.
    public void registerTimer(){
         // getting the timerService from the EJBContext     
         timerService = myContext.getTimerService();
         // create a timer which times out after 5 seconds, and subsequently after every 10 seconds
         t = timerService.createTimer(5000,10000,"my timer");
    Q: Is this enough or do we have to configure the engine in some way, so that it calls the ejbTimeout() method ? Maybe I am missing out something.
    If the above tasks are enough then according to my understanding,  the timer is created and then the ejbTimeout(Timer arg0) should be called first after 5 seconds and then after every 10 seconds.
    I have created a servlet which acts as a client to this EJB, by which I can see that the Timer object is created, but the ejbTimeout() is never fired .
    What could be the reason behind this? Am I missing something? Do I need to configure the engine in some way?
    Any input on the above will be most valuable.
    Thanks and Regards,
    Gagan Parhar.

    Hi ,,
        Go THru this article, sure it helps .
    http://www.oracle.com/technology/sample_code/tutorials/fbs10g/fbs10gtoc.htm
    Reg
      VArun CN

  • Using InputStream on EJB method

    Hi everyone,
    i was looking for a way to use InputStream or anything else related to the java.io package on my EJB method. This is the first time that i need to do something like that, so i made a research and i figure out that is impossible use any kind of the io package when i using EJB. Is that true?...
    if this is true, could anyone help me how i can save something on my server using EJB?
    Thanks in Advance

    hi,
    i looked in some forums, and talk with some people who use EJB for so long, and all answers took me to the conclusion that is totally not recommended using streams on ejb methods...i haven't looked on ejb specification to really see if its true...
    Besides, i tried in other way..... first i created my EJB method with a byte[] parameter, and a "service" class which convert this array to an InputStream..and record the file on server...i did a client to test and apparently works without errors, i don't receive any exceptions, so i suppose that at least this part is correct, but i having another problem....
    by the way, anyone know how can i save a certificate on a Keystore??...i'm trying that:
    keyStore = manager.getKeystore("DEFAULT");
         keyStore.load(is, password.toCharArray());     attempting that "is" is the InputStream (same of the problem above) and the second parameter is the password....this code belongs to a method on the "service class" that i mentioned before....
    but nothing happens when i run my app. anyone could help me??
    Thanks in Advance

  • Logging Denied EJB Method Invocation

    In Weblogic Application Server, v 6.1, I'm experimenting around with
    the AuditProvider. Several of my EJB's have method-permission
    declarations that limit who is able to execute those methods. When
    WLS correctly denies an attempt to invoke a method for which its
    method-permission does not allow the user permission, the
    AuditProvider method (checkPermission) does not seem to get called.
    Should checkPermission() be called if a permission check against an
    EJB method-permission fails? If not, is there somewhere else I can
    capture and audit disallowed attempts to execute these methods?
    Thanks.
    -- Edgar

    Thanks, Tom.
    We are on SP3. I'll double-check my findings, put together a test
    case I can send with it, and open a support case.
    Thanks again.
    -- Edgar
    "Tom Hegadorn" <[email protected]> wrote in message news:<[email protected]>...
    Hi,
    I'm not sure but it sounds like it may be a bug. Please make
    sure you are on the latest service pack (SP3 at time of this
    writing). If so, and you still see the behavior I would recommend
    opening a case with BEA Support. Please provide a detailed
    test case so that a support engineer can replicate the behavior.
    Thanks.
    Regards,
    Tom Hegadorn
    Developer Relations Engineer
    BEA Support
    [email protected] (Edgar) wrote:
    In Weblogic Application Server, v 6.1, I'm experimenting around with
    the AuditProvider. Several of my EJB's have method-permission
    declarations that limit who is able to execute those methods. When
    WLS correctly denies an attempt to invoke a method for which its
    method-permission does not allow the user permission, the
    AuditProvider method (checkPermission) does not seem to get called.
    Should checkPermission() be called if a permission check against an
    EJB method-permission fails? If not, is there somewhere else I can
    capture and audit disallowed attempts to execute these methods?
    Thanks.
    -- Edgar

  • Virtual Machine - high disk response time

    Hi Everyone,
    Got something strange happening in our lab at the moment and was wondering if anyone had experienced the same thing (and maybe has a solution).
    Our lab environment in a nutshell:
    2x Windows 2012 Hyper hosts cluster connected to a "home-made" SAN based on Windows 2012 iSCSI target.
    Each Hyper-V host has two 1Gbps network cards to connect to the SAN via the Microsoft iSCSI initiator, with MPIO in load-balancing mode (least queue depth).
    The SAN (Windows 2012 server with iSCSI target) has 4x 1Gbps cards, teamed two by two, so presenting two IP addresses used by each hosts to connect to it (via MPIO).
    The disk subsystem on the Windows 2012 SAN is an external HP storage works with 25x HP 500 SATA disks, connected to the server via an INTEL RAID controller with 2x 240GB SSD caching enabled for read/write.
    The iSCSI network is on a dedicated HP switch, with flow-control and jumbo frame enabled (tested ok).
    Now the problem:
    I've built a few virtual machines on the two hyper-v nodes and I'm getting very bad disk response time as soon as there is an increase in the disk traffic.
    When the virtual server is doing very little, I get a normal 6-8ms, but I soon as I increase the traffic (by for example copying a big file, or installing an application), this figure shoots up to 200ms, 300ms and more!
    So I first thought that it was my disk subsystem (and the SAN server), but while the spikes are happening within the virtual machine, the disks on the SAN Server are sitting at about 10ms, with some spikes to about 20ms (which is pretty good and what I would
    expect to see within the VM because of the SSD cache).
    I then thought it could be the network, but during those times of activity, the network does not get saturated at all. Barely 150Mbps to 200Mbps per link.
    I even tried to disable MPIO and run everything across one Ethernet link, but still the same result.
    Am I missing something here? doing something wrong? or is this expected behaviour?
    Thank you,
    Stephane

    Hi,
    VR38DETT is right, if you want to use more ISCSI bandwidth or redundancy you must use the MPIO method, Multipath I/O (MPIO) is a feature that provides support for using multiple
    data paths to a storage device. Multipathing increases the availability of storage resources by providing path failover from a server or cluster to a storage subsystem.
    More information:
    Multipath I/O Overview
    http://technet.microsoft.com/en-us/library/cc725907.aspx
    Support for Multipath I/O (MPIO)
    http://technet.microsoft.com/en-us/library/cc770294.aspx
    Hope this helps.
    Alex Lv

  • Response time low to display 2700 records

    In my program , i have tried to display 2700 records from Database using JSP.
    But the response time is very slow. How do i overcome this problem.
    My architecture is
    JSP - EJB - HelperClass - DB.

    Find out where the performance bottleneck is
    1) Database -> use PreparedStatements,
    reuse an open database connection
    2) JSP -> Check your string handling, use StringBuffer() for appending
    lots of strings together
    3) Network response -> Maybe try defining a static IP address for your
    server
    regards,
    Owen

  • To fetch response time

    hey..i jus wrote a codo to ping a url but im havon difficulty in developing a code to fetch the response time taken to open that site..can u suggest me some method

    i tried with the method u suggested..it doesn get me the response time of the url
    ..is this the correct way ??
    try{
    System.setProperty("java.net.useSystemProxies","true");
              System.getProperties().put("proxySet", "true");
              System.getProperties().put("proxyHost", "---");
              System.getProperties().put("proxyPort", "---");
              long responseTime = System.currentTimeMillis();
              int requestTime = 0;
              if(responseTime >requestTime+5000){
                   System.out.println("The url is not accessible");
              else
                   System.out.println("ping the url");
              responseTime=requestTime;
              URL yh = new URL("http://www.yahoo.com");
              HttpURLConnection ut =(HttpURLConnection) yh.openConnection();
         ut.setDoOutput(true);
              in = new BufferedReader(new InputStreamReader(ut.getInputStream()));
              String inputLine;
              while ((inputLine = in.readLine()) != null)
                   System.out.println(inputLine);
              in.close();
         }catch(Exception e){
              e.printStackTrace();
    }

  • Stateless EJB 3: update / query on same ejb-method get wrong results

    I have a JavaEE application using EJB3 Stateless and DAOs with JDBC statements, simple transfer objects for data.
    The EJB business method update some questionnaire structure, after that query on database for new questionnaire (need for get autogenerated ID's on subelements: questions, sections, ...), the ejb-method code look like:
    public Questionnaire modifyQuestionnaire(Questionnaire questionnaire) {
       QuestionnaireDAO dao = getQuestionnaireDAO();        
        // Update questionnaire info
       dao.modifyQuestionnaire(questionnaire);
       // Get new info
       Questionnaire newQuestionnaire = dao.getQuestionnaireById(questionnaire.getId());
       return newQuestionnaire;
    }The problem is: when invoke "getQuestionnaireById" method on DAO at this time, I get old information ... seems as if UPDATE operations executes on DAO not has been flushed.
    After EJB method finish, the information is up to date on physical database, and after that I query the questionnaire using the same DAO "getQuestionnaireById" method, and all is up to date ! ...
    When I'm wrong?, I'm using default transaction (required) on ejb, I get the JDBC connection from a DataSource using JNDI lookup to a Container managed connection pool, I close all connection and JDBC resources ... mmm I'm using "executeBatch" for updates/inserts.
    My system:
    AppServer: SJSAS PE 9
    Database: Postgresql 8.1
    JDBC Driver: 8.2dev Build 503
    O.S.: Linux Ubuntu Dapper Drake
    Thanks any help ! .. please.
    null

    There seem a Postgresql JDBC driver problem, I change datasourceclassname from
    org.postgresql.ds.PGSimpleDataSource to org.postgresql.xa.PGXADataSource (of course, resource type: javax.sql.XADataSource) and work fine.

Maybe you are looking for

  • No video with Skype

    When using Skype on iPhone 4s with IOS 5.1, my counterpart can see me, but I only see a black box where my image should be. It works OK on my iPad2, also with IOS 5.1. Thank for any good advice, Jean

  • Cannot make use of concurrency-strategy

              Hi!           First goes the abstract: despite all other parameters, the only setting that seems           to make a difference for transaction handling is <isolation-level>. What I really           want to make use of, is <concurrency-stra

  • Slow Initial Database Connection

    I think I have a slowness issue with the initial Oracle database connection. When I try to connect initially, the connection , it takes a long time. Is there anyway to speed this up... I am using encryption and jdbc on oracle. This takes a good 20 -

  • LR6 Using Intel Graphics intead of Nvidia

    It's using the Intel 4600 instead of my Nvidia GTX680 with 4GB memory. My Nvidia driver is updated to the very latest. It says it passed the Open GL test, but it's not using the Nvidia Lightroom version: 6.0 [1014445] License: Perpetual Operating sys

  • Iphone 4S shut down by itself and will not turn on.

    I was using my phone in the car on Sunday and it was working perfectly fine, got home and placed it on the table. Went away for 10-15 mintues and I had come back to find it was off which I thought odd as the battery was almost fully charged. I attemp