Profiling OC4J on Linux

I want to profile portlets, web apps and EJBs in OC4J on both Windows & Linux (more specifically, Suse Linux). Specifically I'm interested in profiling of memory (where are most objects created) & performance (in which method does the application spend most of its time). Does anybody have any experience with this?
From two tools I know of, Borland's OptimizeIt (http://www.borland.com/optimizeit/) only supports Red Hat Linux (http://info.borland.com/techpubs/optimizeit/optimizeit55/textfiles/support.html) and OC4J on Windows (http://info.borland.com/techpubs/optimizeit/optimizeit55/textfiles/appserver.html). JProbe (http://java.quest.com/jprobe/jprobe.shtml) supports only Red Hat as well (http://java.quest.com/support/jprobe/platforms.shtml) and isn't too specific about its OC4J support (http://java.quest.com/support/jprobe/j2ee.shtml).
I know that the JDeveloper has a built-in profiler but it seemed a little simplistic (how can I compare any two memory snapshots) and sparely documented. And from what I know, it can't do remote profiling on the server.

You can install OJVM on Linux see:
http://www.oracle.com/technology/products/jdev/htdocs/9.0.5.2/readme.html#ojvm_install_linux
And you might also want to try installing 10.1.3 on linux and using it for profiling.

Similar Messages

  • How to Install OC4j in linux

    Hi all..
    I am novice user of Linux Platform...
    I wanted to install oc4j under linux..
    The Staps in followed ..
    1.. i have installed jdk 1.3.1 linux version
    2.. i have unzipped to ,zip file
    after this i have set the path
    but duuno how to set the class path
    as i ahve to run java -jar oc4j.jar
    how shuold i go about it..
    Any sugg...gr8 helpful
    Reg
    Raj

    Thank you AndrewThompson64
    You have done a great job.You are welcome.. but really, the only
    'great' thing I did was a quick search on
    'Java install linux'
    to show that link (that I knew was around
    here somewhere) at the top of the
    search reasults!
    Thanks for your interest to help me.You are welcome. :-)
    Next time you get stuck, 'drop back by'* and
    I'll show you some more clever search tips. ;-)
    * ..but really, you will gain a lot if you simply
    'lurk' around the forum and read other posts,
    even as you are writing code..

  • Unable to Start OC4J in Linux

    Hi
    We tried to start oc4j in Linux using following command
    [oracle@fa2220 setup]$ oc4j -start
    Starting OC4J from /dbfiles/home/oracle/obiee_home/OracleBI/oc4j_bi/j2ee/home ...
    It is stopping at this stage without any errors.
    Linux Version: Red Hat Enterprise Linux Server release 5.3 (Tikanga)
    We tried to see what is being done in the process, so we did strace and found the following:
    strace -p 15924
    Process 15924 attached - interrupt to quit
    futex(0xb7675bd8, FUTEX_WAIT, 15925, NULL
    And we checked the netstat –a | grep 23791 (default ORMI port) and found it is listening on this port.
    But we can not access oc4j.
    Can someone please help?
    PS

    I managed to solve the problem by setting the "Load All System JAR Files during OC4J Startup" in the "Embeded OC4J Server Preferences" under "Global > Startup".

  • OC4J on Linux RedHat 8.0

    Hi I want to know whether the OC4J which we use on Win2k is the same for Linux RedHat 8 or do we have to download a diff version?? If so where can I find that?
    Or how to install OC4J on Linux RedHat8
    Thanx
    Kulkarni

    I just unzipped oc4j_extended.zip into /usr/local/ and then started it like:
    cd /usr/local/j2ee/home
    $JAVA_HOME/bin/java -jar oc4j.jar &
    Then exited my shell (which bash lets me do)
    Rob

  • Memory profiling oc4j application on linux

    Is there any way I can use Jdeveloper's memory profiler to connect to an application running in oc4j on a remote linux server? I don't see this as being possible because it seems to require ojvm which isn't available on linux. Am I wrong? What are my alternatives? I really need to profile my memory usage on this server.

    You can install OJVM on Linux see:
    http://www.oracle.com/technology/products/jdev/htdocs/9.0.5.2/readme.html#ojvm_install_linux
    And you might also want to try installing 10.1.3 on linux and using it for profiling.

  • Running OC4J on Linux in the background?

    I am relatively new to Linux and have been trying to start OC4J either automatically or as a background process (so that I do not have to keep the terminal window open). I tried "$nohup java -jar oc4j.jar &", but OC4J still shuts down when I logout or exit the terminal. Does anyone know of a good way to start OC4J automatically or as a background process?

    You've two choices:
    - install public domain 'screen' program followed by
    running oc4j in a 'screen' session and detach from
    the 'screen'. BTW, 'screen' allows you to reattach
    to an existing session of 'screen'
    - Write a one line shell script and launch this script
    in the background. Now when you exit from your shell
    your oc4j will continue to run.
    -Anantha-

  • How to start OC4J at Linux boot time

    Hello,
    I am using Linux AS 3.0 and i have installed OC4J ( 9.0.4) ok, and OC4J also work fine.But each time i want to start OC4J , i must execute command java -jar oc4j.jar at console.
    Now, I want to start OC4J automatic at System startup ( ie: Linux boot time ).How can i do?
    Thanks.

    Just put your OC4J start/stop commands in a rc script.
    Scripts in the directories
    /etc/rc.d/rc2.d
    /etc/rc.d/rc3.d
    /etc/rc.d/rc5.d
    will be called by the operating system with the command line option start.
    The number in the directory names represent the desired run level of the machine.
    Scripts in the directory
    /etc/rc.d/rc0.d
    will be called during shutdown with the command line option stop.

  • Starting oc4j on linux

    I am using RedHat Linux 7.2 and ias 9.0.2. When I try to execute java -jar oc4j.jar, it hangs and never returns. It is also not opening a port. The log file says that it started. What should we do or look for?

    Hi Bob,
    You can try running OC4J in "debug" mode. The following web page has
    details:
    http://kb.atlassian.com/content/atlassian/howto/orionproperties.jsp
    By the way, did you try searching the forum archives before posting?
    I have posted the above URL several times already in other posts. Are
    you already familiar with the above URL? Did it not help you?
    You can also execute the following command:
    java -jar oc4j.jar -help
    Should show you some other, available options.
    You can also add "-verbosity 10" to the command line, for example:
    java -jar oc4j.jar -verbosity 10
    Hope this helps.
    Good Luck,
    Avi.

  • OC4J in Linux  OS Errors

    we have developed an Enterprise Java Bean for OC4J (version 9.0.2.0.0) which is running on Win2000 OS without any bugs.
    when we deployed the same EAR file in OC4J (version 1.0.2.0.0) on linux OS.we r getting an error like this---->
    java.lang.InstantiationException: Illegal use-caller-identity value, legal values are True and False.
    Is there any problem with the change in OC4J version or
    due to the change in the OS.
    Anyone pls help us to sort out this problem.
    thanks
    prabakar & team.

    Prabakar,
    This is because of the version.
    OC4J 1.0.2.2.1 does not have support for <use-caller-identity which is part of EJB 2.0 spec. This works fine with OC4J 9.0.2 that supports most of the EJB 2.0 spec.
    regards
    Debu Panda
    Oracle

  • OC4J in Linux  OS Error

    Hi Friends
    we have developed an Enterprise Java Bean for OC4J (version 9.0.2.0.0) which is running on Win2000 OS without any bugs.
    when we deployed the same EJB in OC4J (version 1.0.2.0.0) on linux OS.we r getting an error like this---->
    java.lang.InstantiationException: Illegal use-caller-identity value, legal values are True and False.
    Is there any problem with the change in OC4J version or
    due to the change in the OS.
    Anyone pls help us to sort out this problem asap.
    cheers
    prabakar
    thanks
    prabakar & team.

    Prabakar,
    This is because of the version.
    OC4J 1.0.2.2.1 does not have support for <use-caller-identity which is part of EJB 2.0 spec. This works fine with OC4J 9.0.2 that supports most of the EJB 2.0 spec.
    regards
    Debu Panda
    Oracle

  • Command to Bounce OC4J in LINUX

    Hi,
    Can anyone tell me what is the command to bounce the OC4J Services in LINUX?
    Thanks,
    -Vency

    For what it's worth (replace the path and executable extension as necessary):
    D:\BIPv4\oc4j_bi\bin\oc4j.cmd -help
    Usage: oc4j.cmd [Options]
    Options:
    -start : start OC4J
    -shutdown -port -password
    : stop OC4J
    -version : display the version
    -help : display this message

  • Deploying to OC4J on Linux

    I am tring to deploy to a Linux server, however I get the following error message:
    Error in CreateMarlinUIXPage.createUITree: no protocol: /uix/ClientPage.uix
    The application works perfectly fine using OC4J localy on my windows box. I have tried zipping the entire app and manually deploying however this doesn't work either. If some one could point me in the right direction I would appreciate it...

    Here is the error messages from my oc4j:
    CreateUIXPage Exception: no protocol: /uix/ClientPage.uix
    java.net.MalformedURLException: no protocol: /uix/ClientPage.uix
    at java.net.URL.<init>(URL.java:483)
    at java.net.URL.<init>(URL.java:357)
    at java.net.URL.<init>(URL.java:301)
    at oracle.cle.util.CLEUtil.getInputStream(CLEUtil.java:871)
    at oracle.cle.util.xml.XMLUtil.getInputSource(XMLUtil.java:42)
    at oracle.jheadstart.process.CreateUIXPage.createUINode(CreateUIXPage.java:356)
    at oracle.jheadstart.process.CreateUIXPage.createUITree(CreateUIXPage.java:291)
    at oracle.jheadstart.process.CreateMarlinBeanPage.printPage(CreateMarlinBeanPage.java:452)
    at oracle.clex.process.CreatePage.start(CreatePage.java:64)
    at oracle.cle.process.CLEStateMachine.start(CLEStateMachine.java:55)
    at oracle.cle.process.Process.start(Process.java:97)
    at oracle.cle.process.GenericProcess.start(GenericProcess.java:82)
    at oracle.cle.process.ParentProcess.start(ParentProcess.java:218)
    at oracle.cle.process.DisplayGroup.start(DisplayGroup.java:75)
    at oracle.cle.process.CLEStateMachine.start(CLEStateMachine.java:55)
    at oracle.cle.process.Service.start(Service.java:389)
    at oracle.clex.process.controller.HttpServletController.doPost(HttpServletController.java:439)
    at oracle.clex.process.controller.HttpServletController.doGet(HttpServletController.java:849)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:195)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:696)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:281)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:766)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:107)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:802)
    at java.lang.Thread.run(Thread.java:472)

  • Not able to Start the OC4j in Linux

    Hi,
    My Presentation Services is down i am getting a the below error while trying to start the OC4j.
    2009-12-08 03:59:35.916 ERROR ServerFile[PersistentMap,/data/OracleBI/oc4j_bi/j2                                                                                                 ee/home/persistence/jms.state]: persistence file could not be locked. Resolve t he sharing violation by ending the process currently holding the file lock or by using a different persistence directory for one or both processes.
    09/12/08 03:59:35 *** (SEVERE) ServerFile[PersistentMap,/data/OracleBI/oc4j_bi/j                                                                                                 2ee/home/persistence/jms.state]: persistence file could not be locked. Resolve the sharing violation by ending the process currently holding the file lock or b y using a different persistence directory for one or both processes.
    2009-12-08 03:59:35.920 ERROR Failed to set the internal configuration of the OC 4J JMS Server with: XMLJMSServerConfig[file:/data/OracleBI/oc4j_bi/j2ee/home/con                                                                                                 fig/jms.xml]
    09/12/08 03:59:35 *** (SEVERE) Failed to set the internal configuration of the O C4J JMS Server with: XMLJMSServerConfig[file:/data/OracleBI/oc4j_bi/j2ee/home/co                                                                                                 nfig/jms.xml]
    2009-12-08 03:59:35.921 ERROR J2EE OJR-00011 Exception starting JMS server: Fail ed to set the internal configuration of the OC4J JMS Server with: XMLJMSServerCo nfig[file:/data/OracleBI/oc4j_bi/j2ee/home/config/jms.xml]
    2009-12-08 03:59:35.951 ERROR J2EE RMI-00002 Error starting ORMI server uschilxb iweb01.na.emersonprocess.com port 23,791: Address already in use
    2009-12-08 03:59:35.952 ERROR java.net.BindException: Address already in use
    at java.net.PlainSocketImpl.socketBind(Native Method)
    at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
    at java.net.ServerSocket.bind(ServerSocket.java:319)
    at java.net.ServerSocket.<init>(ServerSocket.java:185)
    at com.evermind.server.rmi.RMIServer.createServerSocket(RMIServer.java:433)
    at com.evermind.server.rmi.RMIServer.createNonSecureSocket(RMIServer.java:347)
    at com.evermind.server.rmi.RMIServer.setConfig(RMIServer.java:210) at com.evermind.server.ApplicationServer.initializeRMI(ApplicationServer.java:2378)
    at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:966)
    at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
    at java.lang.Thread.run(Thread.java:619)
    09/12/08 03:59:35 Error starting ORMI server uschilxbiweb01.na.emersonprocess.com port 23,791: Address already in use
    09/12/08 03:59:35 Shutting down OC4J...
    can u please help me out.
    Thnx
    Amit

    Also when i open the application log under /data/OracleBI/oc4j_bi/j2ee/home/application-deployments/analytics i see the below error,
    Just as a test i tried BI Publisher and the login window comes up but not for the Analytics
    The below log says there is some error.
    09/12/08 07:57:39.395 analytics: Servlet error
    java.net.ConnectException: Connection timed out
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:519)
         at java.net.Socket.connect(Socket.java:469)
         at java.net.Socket.<init>(Socket.java:366)
         at java.net.Socket.<init>(Socket.java:180)
         at com.siebel.analytics.web.sawconnect.ConnectionPoolSocketFactoryImpl.createSocket(ConnectionPoolSocketFactoryImpl.java:63)
         at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.siebel.analytics.web.sawconnect.ConnectionPoolSocketFactoryImpl.createSocket(ConnectionPoolSocketFactoryImpl.java:70)
         at com.siebel.analytics.web.sawconnect.ConnectionPool.createNewConnection(ConnectionPool.java:314)
         at com.siebel.analytics.web.sawconnect.ConnectionPool.getConnection(ConnectionPool.java:133)
         at com.siebel.analytics.web.SAWBridge.processRequest(SAWBridge.java:299)
         at com.siebel.analytics.web.SAWBridge.doGet(SAWBridge.java:325)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:619)

  • Problems with CDC/Foundation Profile making on Linux, heip me please!!!

    I am a new to J2ME.My OS is redhat9.0,and building tools is gcc3.4.3.After having downloaded the cdcfoundation-1_0_1-fcs for linux, I unzip it to /home/cdcfoundation/.Under the directory of /build/linux/,I typed the following command:
    make CVM_JAVABIN=/usr/java/jdk1.5.0/bin CVM_DEBUG=true J2ME_CLASSLIB=foundation
    But it failed to build,the error is:
    make: *** No targets specified and no makefile found. Stop.
    I had tried many times,I hope someone can help me!!!
    I am waiting................

    You need ksh (korn shell) in order to compile. It is because this shell provides an option (if I remember well -h) which is not present in other shells like bash.
    So, download it from http://www.kornshell.com and make it available in a folder present in your PATH.
    Hope this help.

  • Problems with CDC/Foundation Profile making on Linux

    I am a new to J2ME.My OS is redhat9.0,and building tools is gcc3.4.3.After having downloaded the cdcfoundation-1_0_1-fcs for linux, I unzip it to /home/cdcfoundation/.Under the directory of /build/linux-i386/,I typed the following command:
    make CVM_JAVABIN=/usr/java/jdk1.5.0/bin CVM_DEBUG=true J2ME_CLASSLIB=foundation CVM_GNU_TOOLS_PATH=/usr/bin
    But it failed to build,the error is:
    make: ksh: Command not found
    make: ksh: Command not found
    H BH B../share/rules.mk:235: ../../build/linux-i686/generated/empty.mk: &#27809;&#26377;&#37027;&#20010;&#25991;&#20214;&#25110;&#30446;&#24405;
    make: ksh: Command not found
    make: *** [../../build/linux-i686/generated/javavm/runtime] Error 127
    I had tried many times,I hope someone can help me!!!
    I am waiting...............

    You need ksh (korn shell) in order to compile. It is because this shell provides an option (if I remember well -h) which is not present in other shells like bash.
    So, download it from http://www.kornshell.com and make it available in a folder present in your PATH.
    Hope this help.

Maybe you are looking for

  • How to add new UI(buttons,checkbox) item in preexisting option dialog and extension in indesign?

    I want to add new UI item in preexisting option dialog and Extension what i have to do ?? eg:if i select interactivity sub menu item in object menu than I select change to button and in this dialog I want add new menu with the add to object menu(at t

  • Hierarchical query - Stop at specific leaf nodes - How to in Oracle 9i ?

    Table H -- Master table to build Hierarchical tree C -- Child P -- Parent Table RN -- Table defining Root Nodes N -- Node Table LN -- Table defining Leaf Nodes N -- Node The following Query can generate trees starting with the nodes specified in the

  • Adobe Acrobat X 10.1.1

    Tried to print to Adobe PDF and save file to network folder and it fails everytime with errro wehn you look at the print que. Can print to local drive without issue. Running win7 Office 2010. Tried a previous suggestion of saving via the Create PDF o

  • Net Price 0

    Hello Guys I created a Purchase Requisition using Material Master Data normal process, the problem is that when I go to transaction ME21N adopt the Purchase Requisition as a reference put the price and currency on the item detail keep giving me the e

  • Wow Headset: I suddenly went deaf!

    So you spend a hundred plus dollars on some nifty wireless headphones, they glow colors, they have a voice modulator, their so cool. That is until they loose their charge, then poof your deaf. No indicator what on how long a charge is, no low power n