Problem--OC4J Hangs

Respected All Oracle ADF/OC4J Users,
I Have Developed very large ADF (ADF BC Swing) Application i.e. One ERP Product, It Contains 300 Application Modules (Forms). I deployed this Application as EJB Session Bean on standalone OC4J which is on Fedora Core 3. There is Very Huge Data Entry, Data Fetching through this Application. (Daily 100000 Records Insertions)
Now problem is, when I start OC4J it goes fine for next 4-5 hours, but after 4-5 hours it get hang or my application get hang .if I restart my OC4J then it will run fine for next 4-5 hours and after 4-5 hours again it hanging ,so in a day I have to restart OC4J 4 times.
-- Some of ADF Experts said that it is better to go for Oracle Application Server.
---But when i go for Oracle Application Server is this problem will not come.
---i have set JVM ARGES AS follows in OC4J.
OC4J_JVM_ARGS="-server -Xms700m -Xmx900m -XX:PermSize=1024m -XX:MaxPermSize=1024m -Doc4j.jms.doGc=true"
--in some times my 3-4 Tables get Lock(DBLOCK) is this reason that my OC4J get hanged.
So I can u guide me on .......
1) Is OC4J not support such kind of large application?
2) Weather I have to go for Oracle Application Server?
3) Is this an Operating System Problem(We are using Fedora Core-3)?
Please guide me.
Thanks

Hi
I'v also got a similar problem. Mine arrises when a URL is called with the target machine avaialable but the application on the machine not responding. The only way to get response back is to re-start OC4J.
Do you also have a URL call to another machine?
Tks
Andre

Similar Messages

  • Problem-OC4J Hanging

    Respected All Oracle ADF/OC4J Users,
    I Have Developed very large ADF (ADF BC Swing) Application i.e. One ERP Product, It Contains 300 Application Modules (Forms). I deployed this Application as EJB Session Bean on standalone OC4J which is on Fedora Core 3. There is Very Huge Data Entry, Data Fetching through this Application. (Daily 100000 Records Insertions)
    Now problem is, when I start OC4J it goes fine for next 4-5 hours, but after 4-5 hours it get hang or my application get hang .if I restart my OC4J then it will run fine for next 4-5 hours and after 4-5 hours again it hanging ,so in a day I have to restart OC4J 4 times.
    -- Some of ADF Experts said that it is better to go for Oracle Application Server.
    ---But when i go for Oracle Application Server is this problem will not come.
    ---i have set JVM ARGES AS follows in OC4J.
    OC4J_JVM_ARGS="-server -Xms700m -Xmx900m -XX:PermSize=1024m -XX:MaxPermSize=1024m -Doc4j.jms.doGc=true"
    --in some times my 3-4 Tables get Lock(DBLOCK) is this reason that my OC4J get hanged.
    So I can u guide me on .......
    1) Is OC4J not support such kind of large application?
    2) Weather I have to go for Oracle Application Server?
    3) Is this an Operating System Problem(We are using Fedora Core-3)?
    Please guide me.
    Thanks

    There's very little difference between the OC4J component itself that is provide as part of Oracle Application Server and OC4J standalone.
    The Oracle Application Server version benefits from the OPMN infrastructure, which enables the Java process to be configured with settings (as you are doing), provides controls the process (start/stop) and which monitors the process to ensure the configured OC4J instances are available. The OC4J instances are also configured out of the box with a bunch of additional libraries, such as the ADF runtime libraries./
    In general, the recommendation is for sites to make use of Oracle Application Server when they want to make use of OPMN, and the other bits and pieces that come with the application server such as Oracle HTTP Server, single-signon, etc.. However, at the end of the day with respect to OC4J, the application server is really just running and maintaining Java processes with OC4J.
    When you say OC4J is hanging, is it just your application on OC4J, or does the whole OC4J become unresponsive?
    Are there any errors when the OC4J instance is hanging -- are you getting any out of memory exceptions? I see you have configured -Xmx so that may not be an issue.
    It's hard to say any more -- have you done a stack dump and taken a look at the various threads to see if there are any deadlocks?
    If you are experiencing problems with locks at the database level and you have a heavily TP oriented application, that may be an issue with the ADF modules that are accessign them. It's very hard to say from the limited information.
    I'd start with looking at some of the above -- then taking the thread-dump when it does hang and see what sort of state the JVM is in.
    -steve-

  • Old Problem of Hanging returned

    Back in March I couldn't get Premiere Pro to launch and it would always hang on the splash screen.  I haven't had to cut anything in 6 months but now I have a pressing job to do and I try to launch PP.  Initially it won't let me open my last saved timeline
    due to some codecs being missing.  It let me open a different old timeline, but the one I wanted was not opening no matter what I tried.  I shut down and tried to re-open and now it's back to the same old problem of hanging on the splash screen.
    Trying to find a way to contact actual Adobe support is impossible, so I'm back here to start the frustrating process all over again.

    Dear Users! this is a user-to-user forum. You can not contact Nokia support team via this forum and there are only few Nokia staff in these forums (Not the support team).
    Unfortunately, I don't know anything about your problem, it just seems to me your phone's keypad is worn off because of usage... but that might not be your case, please wait until you get a reply from another user or just take it to Nokia Care Point.
    Click on the Kudos Star, if you find my post helpful!

  • I have a problem with my iphone 4,the problem is hanging and turning off automatically, it was started when I updated it to ios7.0.2, what should I do?

    I have a problem with my iphone 4,the problem is hanging and turning off automatically, it was started when I updated it to ios7.0.2, what should I do?

    mahtab2 wrote:
    I have a problem with my iphone 4,the problem is hanging and turning off automatically, it was started when I updated it to ios7.0.2, what should I do?
    Connect to iTunes on the computer you usually Sync with and Restore
    http://support.apple.com/kb/HT1414
    Make sure you have the Latest Version of iTunes (v11) Installed on your computer
    iTunes free download from www.itunes.com/download

  • Urgent----OC4J Hanging After every 4-5 Hours

    Respected All Oracle ADF Users,
    I Have Developed very large ADF (ADF BC Swing) Application i.e. One ERP Product, It Contains 300 Application Modules (Forms). I deployed this Application as EJB Session Bean on standalone OC4J which is on Fedora Core 3. There is Very Huge Data Entry, Data Fetching through this Application. (Daily 100000 Records Insertions)
    Now problem is, when I start OC4J it goes fine for next 4-5 hours, but after 4-5 hours it get hang or my application get hang .if I restart my OC4J then it will run fine for next 4-5 hours and after 4-5 hours again it hanging ,so in a day I have to restart OC4J 4 times.
    So I can u tell me
    1) Is OC4J not support such kind of large application?
    2) Weather I have to go for Oracle Application Server?
    3) Is there any kind of setting needs for same problem?
    4) Is this an Operating System Problem?
    5) Is this a Server Compatibility Problem?
    Please guide me.
    Thanks

    Hello,
    I ran into a similar problem running an application server instance on a SLES 9 machine. My application was much smaller than yours and it turned out that I was forgetting to release a connection to an LDAP server from Java code. So, I suggest you have a look at all suspicious bits of code first.
    Regarding the going to Oracle IAS, I would certainly advice you to do so.
    Finally, a last piece of experience that I can share with you is that before getting SLES I used to run my application server on SuSE 8.2. While all the required packages were there the ias instance appeared to use all the available system memory. The issue was resolved until I finally installed the Oracle supported SLES.
    If you like the Red Hat "look and feel" but still don't want to get a Linux that requires subscription like Oracle EL, why not try CentOS (www.centos.org) which appears to be a very good Red Hat clone.
    Thanassis

  • OC4J:BC4J;JSP;OC4J hangs after refresh

    Hi All,
    I've deployed my JSP-aplication which uses BC4J. The BC4J are deployed as plain jar-files. Everything runs well, until....
    When i click my refresh-button in my browser several times real quick OC4J will hang! When I start a new session on a diferent machine I won't get any output from OC4J. I've to stop and startup OC4J to get it working again.
    This is really a big problem since we have to move to production ina short time.
    Is there some setting in OC4J where I can catch the request if they are made in a short time (< 1 sec) within the same session and ignore them ?
    Does someone know any other solution for his problem?
    TIA
    null

    Juan,
    Thanks for your answer. The synchronized-block in my jsp solves the problem. But it only works if I make the entire JSP synchronized. Can you tell me what the drawback is, if I have my JSP synchronized (if there are any) ?
    TIA.
    Pascal

  • OC4J hang on shutdown

    When I try to shutdown OC4J (Orion) with java -jar admin.jar ormi://localhost username password -shutdown force
    Orion print the message "Shutting down..." and then hangs indefinately. Ctrl-C won't even stop the proces. kill -9 is the only solution.
    We have a project using a servlet, some stateless session beans and some beanmanaged entitybeans.
    The entitybeans is using SQLJ the following way:
    Connection con = null;
    DefaultContext ctx = null;
    try {
    InitialContext ic = new InitialContext();
    DataSource ds = (DataSource) ic.lookup("jdbc/OracleCoreDS");
    con = ds.getConnection();
    ctx = new DefaultContext(con);
    #sql [ctx]
    {select count(*)
    into :i
    from mytable
    where id = :primaryKey
    catch (javax.naming.NamingException ex) {}
    catch (SQLException ex) {}
    finally {
    try {
    ctx.close();
    con.close();
    } catch (java.sql.SQLException ex) {}
    I do make some logging in the catches - they are just removed for clarity of the example.
    I've read on the Orion maillinglist that someone were experiencing similar problems when JDBC.
    I tried
    Sun JDK 1.3.0_02
    Sun JDK 1.3.1
    and IBM JDK 1.3 build cx130-20010207
    on
    RedHat 6.2 kernel 2.2.14-5.0smp, glibc 2.1.3
    and RedHat 7.1 kernel 2.4.3, glibc 2.2.2
    and Sun JDK 1.3.1 on Windows 2000
    Does Oracle or anyone else have a solution to this problem???
    null

    On way would be to send kill -3 to the process. That would allow you to detect deadlocks etc. - which will give us a clue as to what could be wrong.
    null

  • OC4J Hanging!!!! Urgent Please help

    Hi,
    We have deployed EJB's on OC4J 1.0.2.2. And the Java Client would be invoked from UNIX schedular, which intrun work with EJB. The UNIX schedular would invoke many Java client based on the time at given point it could be around 20 clients making request to EJB. But after few hours say(2 hrs), the OC4J stops responding and HANGS!!!!!!!!!.
    We get following error if I try to invoke any client.
    javax.naming.NamingException: Lookup error: java.net.ConnectException: Operation timed out: connect; nested exception is
    java.net.ConnectException: Operation timed out: connect
    at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:125)
    at javax.naming.InitialContext.lookup(Unknown Source)
    I am able to get InitialContext but not able to lookup the EJB. OC4J is either dead or not serving any request.
    Can anyone help, why OC4J still listens on RMI port when it can not service the look-up? Or there is no relationship with LISTEN on port and Service.
    This is done on the production server... Request please
    help....
    Regards
    Arun

    Avi,
    Please find snippet of my ServiceLocator---
    private BatchServiceLocator() throws ServiceLocatorException
              System.out.println("Getting into the constructor...:" );
              String fileLocation = null;
              FileInputStream fis = null;
              try
                   // Instanciates Logger
                   log = Logger.getLogger(getClass());
                   // Instanciates cache which will store home interfaces of EJB's
              hm = new HashMap();
              // Load JNDI properties file
                   fileLocation = System.getProperty(BATCH_PROPERTIES_FILE_LOCATION);
                   log.debug("FileLocation :" + fileLocation);
                   fis = new FileInputStream(fileLocation);
                   batchproperties = new Properties();
                   batchproperties.load(fis);
                   if(log.isDebugEnabled())
                        log.debug("Properties file loaded.");     
                   Getting InitialContextFactory
                   System.out.println(batchproperties);
                   String InitialContextFactory = batchproperties.getProperty("INITIALCONTEXTFACTORY");
                   String URL = batchproperties.getProperty("URL");
                   String USER_NAME = batchproperties.getProperty("USER");
                   String PASSWORD = batchproperties.getProperty("PASSWORD");
                   Hashtable env = new Hashtable();
                   env.put(Context.INITIAL_CONTEXT_FACTORY, InitialContextFactory);
                   env.put(Context.SECURITY_PRINCIPAL, USER_NAME);
                   env.put(Context.SECURITY_CREDENTIALS, PASSWORD);
                   env.put(Context.PROVIDER_URL, URL);
                   System.out.println("hashtable = " + env);
                   ctx = new InitialContext(env);
                   System.out.println("ctx:"+ ctx);
              catch(Exception e)
                   e.printStackTrace();
                   throw new ServiceLocatorException("Context properties file could not be loaded");
              finally
                   if (fis != null)
                   try
                        fis.close();
                        fis = null;
                   catch(Exception e)
                        log.warn("File Input stream not closed");
         public static BatchServiceLocator getInstance() throws ServiceLocatorException
              System.out.println("getInstance:BatchServiceLocator");
              if (instance == null)
                   instance = new BatchServiceLocator();
              return instance;
    This is singleton but not thread safe. This should not matter beacuse we invoke the Batch Client from UNIX shell script using "java -jar <module>BatchClient.jar". This essentially means ServiceLocator is for this client and JVM is different. Another client will invoke with another JVM, once end of the execution the Context is removed.
    But I got solution when I made ServiceLocator thread safe using Synchronization. I am not clear on the Thread playing spoil sport in Client JVM.
    Any thoughts are welcome.
    Regards
    Arun

  • Flash  problems, by hanging/crashing in win7 64bit ?compatibility

    Over the last two to three months I have had increasing problems with Flash Player and shockwave hanging/crashing. I use Windows 7 Home Premium 64 bit and Firefox. I understand that the latest versions of flash are not compatible with 64 bit Win 7. Is this true and how can I solve this problem? Thanks Drummond Mansbridge

    They're 100% fully compatible with Win 7. At least on my Win 7 Ultimate 64 bit machine, there are no problems with FF, Opera, Safari, Chrome or IE 10.
    Keeping BOTH Flash Player and Shockwave up to date, helps.
    Flash Player Uninstaller
    Flash Player Plug-in (All other browsers)
    Shockwave Player Uninstaller
    Shockwave Player 12 FULL Installer
    Use those to do a complete uninstall and reinstall.
    IF it still crashes frequently, check your other FF plugins to see if there's a conflict.

  • BDC problem session hangs on F4.

    Hi all,
    suppose a material code has been created using mm01, know while performing
    valuation extension of this material code through  bdc call transaction method ,
    Problem arises when a wrong plant is given through flat file to a particular matnr ,
    a pop up window appears with a message , matnr is not matained for this plant,
    But know if after cancelling this pop up window and opening the search help in the plant field which shows the correct plant for which the material code matained, the system hangs here neither it allows to select this correct plant from search help,
    and nor it closes this window there after . hence after altctrldel has to be done due to which all other session and whole sap session gets close .
    Pls provide your valuable suggestions on this problem
    thanks in advance ,
    Regards,
    Vivek

    Hi!
    Try not solve this problem in BDC. Write your coding into the ABAP section.
    For example if there is a possible wrong plant, then search after it first.
    like: SELECT SINGLE werks FROM marc INTO lv_werks WHERE matnr = lv_matnr.
    If the werks (plant) is not correct, then use the plant from the select in the BDC.
    BDC is not very good for error handling.
    Regards
    Tamá

  • ToC problem with hanging side head paragraphs

    I've created a template in CS4 ID that uses hanging side heads that look like those shown here:
    http://tinyurl.com/bdrnxq
    The hanging side heads were created using instructions included in the linked example.
    Everything is working except the ToC. When I generate one, the hanging side heads are grouped together at the top of the items listed on a page, no matter where they really are located on that page. For example, if the following sections were on page 5 in the book:
    1st level section 1......pg 5
    1st level section 2......pg 5
    1st level section 3......pg 5
    2nd level hanging side head section 3.1.....pg 5
    1st level section 4......pg 5
    Are showing up in the TOC as:
    2nd level hanging side head section 3.1......pg 5
    1st level section 1......pg 5
    1st level section 2......pg 5
    1st level section 3......pg 5
    1st level section 4......pg 5
    Is there a setting that will fix this problem, or a workaround? I'm bummed that this isn't working properly in InDesign.

    Hello Jeurgen
    I don't think that it is possible to do what you want i.e. independently control where Pages breaks the heading in the TOC. However, you will notice that you get slightly nearer what you want if you align the text of the TOC to the left instead of justifying it.
    Annoying I know...

  • OC4J hanging

    The OnlineOrders sample in Oracle HTTP Server can run perfectly with BC4J libraries in Oracle8.1.7 or Oracle9iAS 1.0.2. However, OC4J will hang when I try to run it with new BC4J libraries in JDeveloper3.2.2/3.2.3.
    Does this mean that OC4J only works with old BC4J libraries?
    FYI:
    For my old BC4J libraries:
    Oracle JBP Server version 3.2.7.90.0
    Oracle SQL Builder version 3.0.0.0.0
    For my new BC4J libraries:
    Oracle JBP Server version 3.2.9.16.2
    Oracle SQL Builder version 3.2.0.0.0
    Is this correct? Can Oracle pack a new workable BC4J libraries for OC4J? Thanks in advance.
    null

    The OnlineOrders sample in Oracle HTTP Server can run perfectly with BC4J libraries in Oracle8.1.7 or Oracle9iAS 1.0.2. However, OC4J will hang when I try to run it with new BC4J libraries in JDeveloper3.2.2/3.2.3.
    Does this mean that OC4J only works with old BC4J libraries?
    FYI:
    For my old BC4J libraries:
    Oracle JBP Server version 3.2.7.90.0
    Oracle SQL Builder version 3.0.0.0.0
    For my new BC4J libraries:
    Oracle JBP Server version 3.2.9.16.2
    Oracle SQL Builder version 3.2.0.0.0
    Is this correct? Can Oracle pack a new workable BC4J libraries for OC4J? Thanks in advance.
    null

  • OC4J hangs when accessing ADF DataPage

    My application was working and all of a sudden, when I try to hit a DataPage accessing a table (Read Only on the JSP side) it hangs. If I try to hit any page after that using the same session is hangs up also. After debugging and stepping through a lot of code, the first hang is when it tries to call a sync on the application module in the oracle.adf.model.bc4j.DCJboDataControl class in the sync method. It blocks all further accesses in the the same session because of a synchronize in ADFBindingFilter.
    My questions are:
    1. Has anyone else seen this problem?
    2. If so, what is causing it?
    3. Have you fixed it?
    4. How?

    Hi,
    seems that the proper subject is "NPE whn accessing EJB from ADF binding". The error message states that the tasklist_tasklistPageDef file cannot be instantiated as a binding container. Can you run other pages that use the same EJB ?
    Frank

  • Memory problems, system hangs or does not enter 'sleep' mode

    Since my MacBook automatically upgraded itself (Software Update) to 10.5.7 about a month ago I've had nothing but problems with it.
    I keep getting 'low memory' warnings, or the 'please wait' twirling symbol displays for ages whilst something happens in the background, or the system occasionally hangs for no apparent reason. Sometimes it reboots without warning.
    But the most irritating aspect of the problems I'm experiencing is that when I put it into Sleep mode and subsequently want to wake it up, I notice that the cooling fan is in overdrive (so clearly not asleep at all) and then upon opening the cover I get a blank screen (nothing 'wakes up'). Or so it appears. But actually upon closer inspection I can see my last used screen display in very faint outline somewhere in the darkness of the screen. The only way out of this scenario is to hold the on/off button until the machine shuts down, wait a few moments and then boot from scratch.
    From reading other comments in this forum there seem to be some real problems with 10.5.7, so I suspect I'm not alone in experiencing the problems I've described above.
    I'd be interested to know whether people think I should take my MacBook to my local Apple Store to get them to have a look at a fix of some kind, or perhaps there is something I could be doing myself?

    Hi,
    *"But the most irritating aspect of the problems I'm experiencing is that when I put it into Sleep mode and subsequently want to wake it up, I notice that the cooling fan is in overdrive (so clearly not asleep at all) and then upon opening the cover I get a blank screen (nothing 'wakes up'). Or so it appears. But actually upon closer inspection I can see my last used screen display in very faint outline somewhere in the darkness of the screen. The only way out of this scenario is to hold the on/off button until the machine shuts down, wait a few moments and then boot from scratch."*
    Try a href=http://support.apple.com/kb/HT1411> Resetting the SMC
    *"Since my MacBook automatically upgraded itself (Software Update) to 10.5.7 about a month ago I've had nothing but problems with it"*
    For the record, no computer can just update it's system software on it's own. When Apple has updates available you must type in your admin password at the prompt in order to "Accept" the terms. The software cannot be installed without your knowledge.
    Next... anytime you do software updates of any kind, run Disk Utility (Applications/Utilities) and repair disk permissions. Launch Disk Utility. Select MacintoshHD in the panel on the left, select the FirstAid tab. Click: Repair Disk Permissions. When it's finished from the Menu Bar, Quit Disk Utility and restart your Mac.
    Try booting from your install disk and verify whether or not the hard disk has errors.
    Insert the installer disk and Restart, holding down the "C" key until grey Apple appears.
    Go to Installer menu (Panther and earlier) or Utilities menu (Tiger and later) and launch Disk Utility.
    Select your HDD (manufacturer ID) in the left panel.
    Select First Aid in the Main panel.
    (Check S.M.A.R.T Status of HDD at the bottom of right panel. It should say: Verified)
    Click Repair Disk on the bottom right.
    If DU reports disk does not need repairs quit DU and restart.
    If DU reports errors Repair again and again until DU reports disk is repaired.
    When you are finished with DU, from the Menu Bar, select Utilities/Startup Manager.
    Select your start up disk and click Restart
    If you cannot boot from your install disk, try booting in Safe Mode
    Check available disk space.
    Right or control click the MacintoshHD icon. Click Get Info. In the Get Info window you will see
    Capacity and Available. Make sure you always have a minimum of 10% to 15% free disk space at all times.
    Carolyn
    Message was edited by: Carolyn Samit

  • Big problem, windows hanging by SB Live! Plati

    I have buyed some new hardware for my computer.
    A new mainboard Asus a8n-sli deluxe
    New grapicscard Matrox Parphelia DL 256 (pci)
    My computer didn't startup anymore after installing this new hardware so I install windows xp again.
    Everyting works fine but when I install my SB Li've! platinum (ct 4760) card, windows goes hanging.
    First i think its a IRQ problem but it isn't.
    I disable my onboard sound before installing the li've card.
    When Windows is started up, I see the speaker (rigth in my taskbar) going mute, on and that again and again and then windows is hanging.
    Please I need helpe,
    Thanks a lot

    Hi
    Does Li've! card appear on device manager?
    In which PCI slot have you installed Li've!
    It may be so that Li've! drivers are not working with shared IRQs card?
    Put the card on PCI slot 3 (see manual: board layout).
    Do you have original Li've! installation CD with XP drivers?
    If not then you can search this forum for links to them.
    This so far ...
    .jtp

Maybe you are looking for

  • Set up a DNS on Solaris 8(SPARC)

    Hi, We have a ultra 5 machine. I am now trying to install Sun Internet Mail Server. One of the requirement for this is setting up of LDAP server. This does not install until a DNS is found. I intend to install the DNS on the solaris box itself. Can s

  • Adding pages to a document

    I have been using the following code to add a page to the document. Utils<ILayoutUIUtils>()->AddNewPage(); It has been working fine in CS3 and CS4. However in CS5 (mac), it is inserting pages. So in a 2-page document, any objects that were on the 2nd

  • Auto change Posting date to current date in Service Entry on approval day

    Hi Guru The scenario is: User is creating a Service Entry (SE) ML81n The Posting date X is taken automatically as today's / sys date in SE The SE goes for approval in Approver's inbox. Approver is taken to SE when presses approval button on X+1 date

  • SAP DMS - HR documents

    We have a reuqirement of uploading employee photos thru CV01n into dms and display these photos in PA30 . How it can be achieved? Thanks, Ravindra

  • Can BW and R/3 Coexist?

    Hi, I apologize in advance if this is the wrong forum to ask this question. Can BW and SAP R/3 both reside on the same server/host but on seperate DB (Oracle)?  We are looking to migrate to new hardware but was not sure if both those applications can