Spawned Process 441402

Dear Gurus,
I have been facing this problem after conducting a successful upgrade from
11.5.7 to 11.5.10.2. Most of my report log shows me Spawned Process
xxxxx(number) Error. Below is the details of log file:
Arguments
P_BOOK='SBM_FA_200_CORP'
P_PERIOD1='APR-07'
APPLLCSP Environment Variable set to :
XML_REPORTS_XENVIRONMENT is :
/sgmtemp/prodora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
XENVIRONMENT is set to:
/sgmtemp/prodora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are
AMERICAN_AMERICA.UTF8
Spawned Process 441402
Report Builder: Release 6.0.8.27.0 - Production on Fri Sep 7 21:47:09 2007
(c) Copyright 1999 Oracle Corporation. All rights reserved.
Enter Username:
+-----------------------------------------------------------------------
+----
+
Start of log messages from
FND_FILE
+-----------------------------------------------------------------------
+----
+
+-----------------------------------------------------------------------
+----
+
End of log messages from FND_FILE
+-----------------------------------------------------------------------
+----
+
+-----------------------------------------------------------------------
+----
+
Executing request completion options...
------------- 1) PRINT -------------
I used adadmin to recompile all the reports. I also downloaded report and complied, still the error is same.
What could be the reason ?
Regards
Kiran Rana

I suggest you raise a TAR/SR with Oracle support. You may also try to check the following notes:
Note: 198232.1 - Validation script for Invoices in Mass Addition Process
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=198232.1
Note: 291618.1 - How to run Generate Asset Trace Utiliy from SQL*Plus
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=291618.1

Similar Messages

  • Error: 1056603 Unable to spawn process for application [AppName]

    Hi,
    After a fresh installation of Essbase Server (11.1.1.4), I'm experiencing the following error when attempting to perform basically any action on any Application (Start, Stop, Delete) through EAS:
    *Error: 1056603 Unable to spawn process for application [Demo]. Please ensure that adequate memory is available.*
    System memory seems abundant at around 5% usage with all relevant services started, but I even doubled it (since it's a VM) to 16Gb just to make sure, the issue persists.
    Having a look at the Essbase server log, I didn't find any additional info that could be helpful:
    [Thu Oct 11 15:07:03 2012]Local/ESSBASE0///2412/Info(1051160)
    Received Validate Login Session request
    [Thu Oct 11 15:07:03 2012]Local/ESSBASE0///2380/Info(1051001)
    Received client request: Get App and Database Status (from user [admin])
    [Thu Oct 11 15:07:03 2012]Local/ESSBASE0///568/Info(1051001)
    Received client request: MaxL: Execute (from user [admin])
    [Thu Oct 11 15:07:03 2012]Local/ESSBASE0///568/Error(1056603)
    Unable to spawn process for application [Demo]. Please ensure that adequate memory is available.
    [Thu Oct 11 15:07:03 2012]Local/ESSBASE0///568/Error(1054001)
    Cannot load application Demo with error number [1056603] - see server log file
    [Thu Oct 11 15:07:03 2012]Local/ESSBASE0///568/Warning(1051003)
    Error 1054001 processing request [MaxL: Execute] - disconnecting
    And when the Essbase service is started, essbase.log also seems to be pretty normal:
    [Thu Oct 11 15:18:13 2012]Local/ESSBASE0///2376/Info(1051001)
    Received client request: Logout (from user [admin])
    [Thu Oct 11 15:18:13 2012]Local/ESSBASE0///2376/Info(1051037)
    Logging out user [admin], active for 29 minutes
    [Thu Oct 11 15:18:19 2012]Local/ESSBASE0///1236/Info(1051243)
    Exclusive operation security file compaction started. This may take a while
    [Thu Oct 11 15:18:19 2012]Local/ESSBASE0///1236/Info(1051244)
    Security file compaction completed
    [Thu Oct 11 15:18:19 2012]Local/ESSBASE0///1236/Info(1051052)
    Essbase Server - finished
    [Thu Oct 11 15:18:23 2012]Local/ESSBASE0///2620/Info(1051283)
    Retrieving License Information Please Wait...
    [Thu Oct 11 15:18:23 2012]Local/ESSBASE0///2620/Info(1051286)
    License information retrieved.
    [Thu Oct 11 15:18:29 2012]Local/ESSBASE0///2620/Info(1051199)
    Single Sign-On Initialization Succeeded !
    [Thu Oct 11 15:18:29 2012]Local/ESSBASE0///2620/Info(1051232)
    Using English_UnitedStates.Latin1@Binary as the Essbase Locale
    [Thu Oct 11 15:18:34 2012]Local/ESSBASE0///2620/Info(1051134)
    External Authentication Module: [Single Sign-On] enabled
    [Thu Oct 11 15:18:34 2012]Local/ESSBASE0///2620/Info(1051051)
    Essbase Server - started
    [Thu Oct 11 15:18:34 2012]Local/ESSBASE0///2620/Info(1051243)
    Exclusive operation security file compaction started. This may take a while
    [Thu Oct 11 15:18:34 2012]Local/ESSBASE0///2620/Info(1051244)
    Security file compaction completed
    [Thu Oct 11 15:18:34 2012]Local/ESSBASE0///2620/Info(1051052)
    Essbase Server - finished
    [Thu Oct 11 15:18:34 2012]Local/ESSBASE0///2120/Info(1051283)
    Retrieving License Information Please Wait...
    [Thu Oct 11 15:18:34 2012]Local/ESSBASE0///2120/Info(1051286)
    License information retrieved.
    [Thu Oct 11 15:18:37 2012]Local/ESSBASE0///2120/Info(1051199)
    Single Sign-On Initialization Succeeded !
    [Thu Oct 11 15:18:37 2012]Local/ESSBASE0///2120/Info(1051232)
    Using English_UnitedStates.Latin1@Binary as the Essbase Locale
    Any ideas on what may be causing this?
    Thanks in advance!
    n

    Hi Nelson,
    Did you try increasing the Heap size for EAS ? Try the following and check if you still get the error -
    increase the Java heap settings in the EAS script on a Unix platform that was configured using the automatic deployment method, do the following:
    1. Navigate to the $HYPERION_HOME/deployments/{appserver}/bin directory.
    2. Edit the setCustomParamseas.sh(.bat) script.
    3. Modify or add the -Xms and -Xmx settings to the JAVA_OPTIONS variable. For example:
    +JAVA_OPTIONS="-Xms256m -Xmx1024m -DComponentName=eas -DcomponentId=1e3bf92b2d9bb0493bcd3380127b0ca49ee7f50 -Dsun.net.inetaddr.ttl=0 -DHYPERION_HOME=/usr/local/oracle/hyperion -Dhyperion.home=/usr/local/oracle/hyperion -DEAS_HOME=/usr/local/oracle/hyperion/products/Essbase/eas -DESS_ES_HOME=/usr/local/oracle/hyperion/products/Essbase/eas/server -DEAS_LOG_LEVEL=5000 -DEAS_LOG_LOCATION=/usr/local/oracle/hyperion/logs/eas/easserver.log -DCLIENT_SERVER_DIFF_MC=true -Dweblogic.j2ee.application.tmpDir=/usr/local/oracle/hyperion/deployments/temp -Djava.io.tmpdir=/usr/local/oracle/hyperion/tmp ${JAVA_OPTIONS} "+
    +*Note: For Tomcat deployments, the setting to modify is JAVA_OPTS:*+
    +*JAVA_OPTS="-Xms256m -Xmx1024m*+
    4. Stop and restart EAS for the setting to take effect.
    Hope it helps....
    KosuruS

  • Error occured while spawning process P247

    HI,
    We are getting this alert "Error occured while spawning process P247".
    Can someone please tell the cause for the same.
    thanks

    Hi,
    Find the full error message.
    Wed Oct 13 11:06:00 2010
    Thread 1 advanced to log sequence 102313 (LGWR switch)
    Current log# 2 seq# 102313 mem# 0: /u01/data05/LTC2PROD/redo02_A.log
    Current log# 2 seq# 102313 mem# 1: /u01/data06/LTC2PROD/redo02_B.log
    Wed Oct 13 11:12:49 2010
    Thread 1 advanced to log sequence 102314 (LGWR switch)
    Current log# 1 seq# 102314 mem# 0: /u01/data01/LTC2PROD/redo01_A.log
    Current log# 1 seq# 102314 mem# 1: /u01/data02/LTC2PROD/redo01_B.log
    Wed Oct 13 11:23:51 2010
    Error occured while spawning process P247; error = 1013
    Wed Oct 13 11:38:02 2010
    Thread 1 advanced to log sequence 102315 (LGWR switch)
    Current log# 6 seq# 102315 mem# 0: /u01/data11/LTC2PROD/redo06_A.log
    Current log# 6 seq# 102315 mem# 1: /u01/data12/LTC2PROD/redo06_B.log
    =============
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE 10.2.0.4.0 Production
    TNS for Solaris: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    SQL>
    Thanks
    Zaigam

  • XML Publisher and Spawned processes

    Does XML Publisher work with statements in the Ebusiness Suite as they are spawned processes and not your usual oracle report?
    Thanks,
    Mark

    Hi,
    Yes it does but it is a two step process. When you run statements it doesn't call the output post processor to generate the XMLP Output. You need to either run the XML Report Publish request, or call via the submit request api from the after report trigger.
    From memory it is the ARXSGP conc program you need to set to output as XML not ARXSGPO. ARXSGP is spawned by ARXSGPO.
    Thanks
    Paul

  • Essbase 11.1.1.3 - Unable to spawn process for application

    Anyone know how to solve the problem with the error message "Unable to spawn process for application" when trying to create a BSO-application in a newly installed 11.1.1.3 installation.

    Hi Nelson,
    Did you try increasing the Heap size for EAS ? Try the following and check if you still get the error -
    increase the Java heap settings in the EAS script on a Unix platform that was configured using the automatic deployment method, do the following:
    1. Navigate to the $HYPERION_HOME/deployments/{appserver}/bin directory.
    2. Edit the setCustomParamseas.sh(.bat) script.
    3. Modify or add the -Xms and -Xmx settings to the JAVA_OPTIONS variable. For example:
    +JAVA_OPTIONS="-Xms256m -Xmx1024m -DComponentName=eas -DcomponentId=1e3bf92b2d9bb0493bcd3380127b0ca49ee7f50 -Dsun.net.inetaddr.ttl=0 -DHYPERION_HOME=/usr/local/oracle/hyperion -Dhyperion.home=/usr/local/oracle/hyperion -DEAS_HOME=/usr/local/oracle/hyperion/products/Essbase/eas -DESS_ES_HOME=/usr/local/oracle/hyperion/products/Essbase/eas/server -DEAS_LOG_LEVEL=5000 -DEAS_LOG_LOCATION=/usr/local/oracle/hyperion/logs/eas/easserver.log -DCLIENT_SERVER_DIFF_MC=true -Dweblogic.j2ee.application.tmpDir=/usr/local/oracle/hyperion/deployments/temp -Djava.io.tmpdir=/usr/local/oracle/hyperion/tmp ${JAVA_OPTIONS} "+
    +*Note: For Tomcat deployments, the setting to modify is JAVA_OPTS:*+
    +*JAVA_OPTS="-Xms256m -Xmx1024m*+
    4. Stop and restart EAS for the setting to take effect.
    Hope it helps....
    KosuruS

  • Oracle 9i tracing spawned process from user

    Hello,
    I am having some some difficulty tracing a periodic spawned process ( every minute it appears and dissapears ) from a specific user to determine the sql statement execution time on the DB. I have turned the DB trace on but the UID appears in the original generated TRC but not when converted with TKPROF?!?
    Any ideas or other solutions?
    Much appreciated
    J

    Here are two bits of the raw file.
    Dump file f:\oracle\admin\sesstg\udump\sesstg_s001_1088.trc
    Thu Jan 08 15:44:00 2009
    ORACLE V9.2.0.8.0 - Production vsnsta=0
    vsnsql=12 vsnxtr=3
    Windows 2000 Version 5.2 Service Pack 1, CPU type 586
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.8.0 - Production
    Windows 2000 Version 5.2 Service Pack 1, CPU type 586
    Instance name: sesstg
    Redo thread mounted by this instance: 1
    Oracle process number: 10
    Windows thread id: 1088, image: ORACLE.EXE
    *** 2009-01-08 15:44:00.500
    *** SESSION ID:(8.5) 2009-01-08 15:44:00.500
    =====================
    PARSING IN CURSOR #1 len=198 dep=1 uid=0 oct=3 lid=0 tim=4026938918 hv=2703824309 ad='b77863e8'
    select obj#,type#,ctime,mtime,stime,status,dataobj#,flags,oid$, spare1, spare2 from obj$ where owner#=:1 and name=:2 and namespace=:3 and remoteowner is null and linkname is null and subname is null
    END OF STMT
    PARSE #1:c=0,e=52,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,tim=4026938913
    EXEC #1:c=0,e=84,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,tim=4026940578
    FETCH #1:c=0,e=56,p=0,cr=4,cu=0,mis=0,r=1,dep=1,og=4,tim=4026940705
    =====================
    PARSING IN CURSOR #2 len=102 dep=1 uid=0 oct=3 lid=0 tim=4026941386 hv=3821877320 ad='b77598a8'
    select increment$,minvalue,maxvalue,cycle#,order$,cache,highwater,audit$,flags from seq$ where obj#=:1
    END OF STMT
    PARSE #2:c=0,e=559,p=0,cr=0,cu=0,mis=1,r=0,dep=1,og=0,tim=4026941383
    EXEC #2:c=0,e=288,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,tim=4026941996
    FETCH #2:c=0,e=24,p=0,cr=3,cu=0,mis=0,r=1,dep=1,og=4,tim=4026942090
    EXEC #2:c=0,e=11,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,tim=4026942220
    FETCH #2:c=0,e=7,p=0,cr=3,cu=0,mis=0,r=1,dep=1,og=4,tim=4026942291
    =====================
    truncated here.....
    =====================
    PARSING IN CURSOR #1 len=129 dep=0 uid=26 oct=42 lid=26 tim=4694343468 hv=1092023619 ad='b72deb90'
    ALTER SESSION SET NLS_DATE_FORMAT = 'YYYY-MM-DD HH24:MI:SS' NLS_NUMERIC_CHARACTERS = '.,' NLS_CALENDAR = 'GREGORIAN'
    END OF STMT
    PARSE #1:c=0,e=17,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=4,tim=4694343466
    EXEC #1:c=0,e=24,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=4,tim=4694343528
    =====================
    PARSING IN CURSOR #1 len=122 dep=0 uid=26 oct=3 lid=26 tim=4694344014 hv=4243797569 ad='b72d6114'
    SELECT PARAMETER, VALUE FROM SYS.NLS_DATABASE_PARAMETERS WHERE PARAMETER IN ('NLS_CHARACTERSET', 'NLS_NCHAR_CHARACTERSET')
    END OF STMT
    PARSE #1:c=0,e=18,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=4,tim=4694344012
    EXEC #1:c=0,e=10,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=4,tim=4694344066
    FETCH #1:c=0,e=56,p=0,cr=3,cu=0,mis=0,r=2,dep=0,og=4,tim=4694344140
    STAT #1 id=1 cnt=2 pid=0 pos=1 obj=101 op='TABLE ACCESS FULL PROPS$ '
    =====================
    PARSING IN CURSOR #1 len=35 dep=0 uid=26 oct=42 lid=26 tim=4694347566 hv=1553381071 ad='b72d1ba8'
    ALTER SESSION SET SQL_TRACE = false
    END OF STMT
    PARSE #1:c=0,e=20,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=4,tim=4694347564
    EXEC #1:c=0,e=30,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=4,tim=4694347628
    *** 2009-01-08 15:55:22.393
    *** SESSION ID:(31.718) 2009-01-08 15:55:22.393
    =====================
    PARSING IN CURSOR #1 len=147 dep=1 uid=0 oct=3 lid=0 tim=4708776743 hv=1356713530 ad='b72ef284'
    select privilege#,level from sysauth$ connect by grantee#=prior privilege# and privilege#>0 start with (grantee#=:1 or grantee#=1) and privilege#>0
    END OF STMT
    PARSE #1:c=0,e=44,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,tim=4708776740
    EXEC #1:c=0,e=67,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,tim=4708777971
    FETCH #1:c=0,e=159,p=0,cr=11,cu=0,mis=0,r=1,dep=1,og=4,tim=4708778148
    FETCH #1:c=0,e=6,p=0,cr=0,cu=0,mis=0,r=1,dep=1,og=4,tim=4708778173
    FETCH #1:c=0,e=3,p=0,cr=0,cu=0,mis=0,r=1,dep=1,og=4,tim=4708778189
    FETCH #1:c=0,e=3,p=0,cr=0,cu=0,mis=0,r=1,dep=1,og=4,tim=4708778210
    FETCH #1:c=0,e=3,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,tim=4708778226
    STAT #1 id=1 cnt=4 pid=0 pos=1 obj=0 op='CONNECT BY WITH FILTERING '
    STAT #1 id=2 cnt=4 pid=1 pos=1 obj=91 op='TABLE ACCESS BY INDEX ROWID SYSAUTH$ '
    STAT #1 id=3 cnt=4 pid=2 pos=1 obj=0 op='CONCATENATION '
    STAT #1 id=4 cnt=0 pid=3 pos=1 obj=110 op='INDEX RANGE SCAN I_SYSAUTH1 '
    STAT #1 id=5 cnt=4 pid=3 pos=2 obj=110 op='INDEX RANGE SCAN I_SYSAUTH1 '
    STAT #1 id=6 cnt=0 pid=1 pos=2 obj=0 op='NESTED LOOPS '
    STAT #1 id=7 cnt=4 pid=6 pos=1 obj=0 op='BUFFER SORT '
    STAT #1 id=8 cnt=4 pid=7 pos=1 obj=0 op='CONNECT BY PUMP '
    STAT #1 id=9 cnt=0 pid=6 pos=2 obj=110 op='INDEX RANGE SCAN I_SYSAUTH1 '
    STAT #1 id=10 cnt=0 pid=1 pos=3 obj=91 op='TABLE ACCESS FULL SYSAUTH$ '
    =====================
    PARSING IN CURSOR #1 len=475 dep=1 uid=22 oct=42 lid=22 tim=4708778432 hv=666934628 ad='5afc12dc'
    ALTER SESSION SET NLS_LANGUAGE= 'AMERICAN' NLS_TERRITORY= 'AMERICA' NLS_CURRENCY= '$' NLS_ISO_CURRENCY= 'AMERICA' NLS_NUMERIC_CHARACTERS= '.,' NLS_CALENDAR= 'GREGORIAN' NLS_DATE_FORMAT= 'DD-MON-RR' NLS_DATE_LANGUAGE= 'AMERICAN' NLS_SORT= 'BINARY' TIME_ZONE= '-05:00' NLS_DUAL_CURRENCY = '$' NLS_TIME_FORMAT = 'HH.MI.SSXFF AM' NLS_TIMESTAMP_FORMAT = 'DD-MON-RR HH.MI.SSXFF AM' NLS_TIME_TZ_FORMAT = 'HH.MI.SSXFF AM TZR' NLS_TIMESTAMP_TZ_FORMAT = 'DD-MON-RR HH.MI.SSXFF AM TZR'
    END OF STMT
    PARSE #1:c=0,e=21,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,tim=4708778430
    EXEC #1:c=0,e=121,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,tim=4708778589
    =====================
    PARSING IN CURSOR #1 len=129 dep=0 uid=22 oct=42 lid=22 tim=4708779448 hv=1092023619 ad='b72deb90'
    ALTER SESSION SET NLS_DATE_FORMAT = 'YYYY-MM-DD HH24:MI:SS' NLS_NUMERIC_CHARACTERS = '.,' NLS_CALENDAR = 'GREGORIAN'
    END OF STMT
    PARSE #1:c=0,e=16,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=4,tim=4708779445
    EXEC #1:c=0,e=23,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=4,tim=4708779506
    =====================

  • How to send EOF to spawned process....

    Folks,
    On Linux, the list of disks can be obtained as follows:
    # format < /dev/null
    Without redirecting /dev/null to its input, command "format" requires you to enter a value or CTRL-C.
    I am trying to run format as a process within my Java code:
    ProcessBuilder pb = new ProcessBuilder(args)
    Process p = pb.start();
    OutputStream os = p.getOutputStream();
    os.close(); // Hopefully, sends EOF
    p.waitFor();
    As you can see, I am closing the input to the process, hoping that this will send an EOF to the process. However, the output that I get is erratic. Sometimes, I see the output and sometimes I don't.
    My guess is that either I am not doing the right thing or may be I am closing the stream even before any processing is done.
    I would appreciate your help in understanding what needs to be done to simulate redirecting /dev/null to the process.
    Thank you in advance for your help.
    Regards,
    Peter

    Thank you baptos and EJP.
    I tried to show only the relevant code snippet earlier. I am also processing the other two streams using StreamGobbler class. Here are more details:
    ProecessBuilder pb = new ProcessBuilder(args);
    Process p = pb.start();
    if (simulateDevNull == true) {
    OutputStream os = p.getOutputStream();
    os.close();
    stdOut = new StreamGobbler(p.getInputStream());
    stdErr = new StreamGobbler(p.getrrorStream());
    stdOut.start();
    stdErr.start();
    p.waitFor();
    Class StreamGobbler is a thread based class that can be used to process the output and the error from the spawned process in a separate thread. You can find many references to StreamGobbler class on the net.
    Regards,
    Peter

  • Spawned Processes and Memory

    Hi Guys,
    Does the JVM limit the amount of memory that a process uses when spawning using Runtime.exec()
    Basically we are trying to run the microsoft linker from Java (via Maven) and it keeps erroring with 'out of memory' this seems to happen when the process uses around 275MB of RAM.
    Are processes spawned by Java limited to the amount of memory allocated to the JVM via -Xmx ?
    Any insight on this matter would be appreciated.

    Check the source code of the function
    Java_java_lang_Win32Process_create
    in j2se\src\windows\native\java\lang\Win32Process_md.c (you can get such
    source code downloading the SCSL Source code.
    The relevant information is posted below.
        si.dwFlags = STARTF_USESTDHANDLES;
        processFlag = CREATE_NO_WINDOW;
        ret = CreateProcess(0,                /* executable name */
                            cmd,              /* command line */
                            0,                /* process security attribute */
                            0,                /* thread security attribute */
                            TRUE,             /* inherits system handles */
                            processFlag,      /* selected based on exe type */
                            envcmd,           /* environment block */
                            cwd,              /* change to the new current directory */
                            &si,              /* (in)  startup information */
                            &pi);             /* (out) process information */It simply does not adjust memory size, or do something mysterious. It simply creates the process, and redirects the input , output and error streams.
    You really must get more memory (or adjust the size of your Windows swap file)...
    You can try lowering (not raising) the -Xmx limit of your Java program to make more room for the "link" process.

  • Spawned process blocks grand parent

    I ran into a problem on Windows with a chain of processes where the top Java process would not exit until the bottom non-Java process exited, even though intermediate Java or Non-java processes had exited. For example: the top Java process spawns a Java subprocess and communicate with it through standard IO streams. That subprocess then spawns a detached non-Java subsubprocess and returns. The problem is that even though the subprocess had exited, the parent process blocked until the subsubprocess exited.
    I tracked down the source of the problem to Java executing all sub processes with the "bInheritHandles" flag for the CreateProcess API set to TRUE, while it should be set to FALSE for detached processes.
    Are there any plan for Java to provide an API to create fully detached processes under Windows?
    Georges
    I reduced the problem to this code:
    Here is the top level script that demonstrate the problem:
    @ECHO OFF
    SETLOCAL & PUSHD %~dp0
    SET JDK_HOME=c:\Program Files\Java\jdk1.6.0
    SET JDK_HOME=c:\j2sdk1.4.2_09
    "%JDK_HOME%\bin\javac" *.java
    ECHO This shows the problem with child Java subprocess that
    ECHO spawns Notepad subsubprocess:
    "%JDK_HOME%\bin\java" -classpath . Exec1
    ECHO Parent Java process exits when Notepad subsubprocess exits.
    POPD & ENDLOCALThis is the parent Java process that spawns a Java subprocess and gets status from it: Exec1.java:
    class Exec1 {
        private static Thread streamOutputThread;
        private static Thread streamErrorThread;
        public static void main(String[] args) {
            try {
                Process process = Runtime.getRuntime().exec("Exec2.bat");
                streamOutputThread = new Thread(new StreamReader(process
                        .getInputStream()));
                streamOutputThread.setDaemon(true);
                streamErrorThread = new Thread(new StreamReader(process
                        .getErrorStream()));
                streamErrorThread.setDaemon(true);
                streamOutputThread.start();
                streamErrorThread.start();
                process.waitFor();
                streamOutputThread.join();
                streamErrorThread.join();
            } catch (Exception ex) {
                ex.printStackTrace();
                return;
    }This is the class that handle the communication: StreamReader.java.
    import java.io.InputStream;
    public class StreamReader implements Runnable {
        private static final int SIZE = 128;
        private InputStream is;
        public StreamReader(InputStream is) {
            this.is = is;
        public void run() {
            final byte[] buf = new byte[SIZE];
            int length;
            try {
                while ((length = is.read(buf)) > 0) {
                    System.out.write(buf, 0, length);
            } catch (Exception e) {
                // ignore errors
    }This is the intermediate script that show that the Java subprocess has exited: Exec2.bat
    @ECHO OFF
    SETLOCAL & PUSHD %~dp0
    SET JDK_HOME=c:\Program Files\Java\jdk1.6.0
    SET JDK_HOME=c:\j2sdk1.4.2_09
    "%JDK_HOME%\bin\java" -classpath . Exec2
    POPD & ENDLOCAL
    ECHO Child Java subprocess exited.
    ECHO Parent Java process still waiting for spawned Notepad subsubprocess to exit!!!!!This is the Java subprocess that spans the Notepad subsubprocess: Exec2.java.
    class Exec2 {
        public static void main(String[] args) {
            try {
                System.out.println(
                    "Child java subprocess spawning Notepad subsubprocess...");
                Runtime.getRuntime().exec("Notepad");
            } catch (Exception ex) {
                ex.printStackTrace();
                return;
    }

    It would be helpful if you posted a question!

  • When I close Firefox 4.0 RC2, I have four or more instances of "plugin-container.exe" spawn before Firefox (and all of the spawned processes) close. Is this normal/intended behavior?

    These processes seem to be independent of the normal plugin-container process spawned for Flash.

    Probably the easiest way is to download Firefox again from http://www.mozilla.com and re-install it.
    If you want to disable plugin-container, see the section on "Disabling crash protection" at http://kb.mozillazine.org/Plugin-container_and_out-of-process_plugins

  • NodeManager startup spawns processes like crazy....

    Has anyone seen a scenario where you start your nodemanager and it it goes off and starts hundreds of times using the same IP and port number? That's what happens when we do it and we end up with over a hundred nodemanager processes running. Any idea on how to get it to only spawn one process?

    We use the following script to launchour nodemanager.
    #!/bin/sh
    ## restart the Node Manager process. LW
    ## Can be called by cron as needed.
    # make sure user is beaadmin..
    user=`/usr/bin/whoami`
    if [ ! ${user} = beaadmin ]
    then
    echo "\nERROR: User ${user} is not authorized to manage this server!\n"
    exit
    fi
    NODEMGR_BIN=`pwd`
    # identify NodeManager PIDs and kill them..
    ##PID=`lsof -i :6101 |grep LISTEN |awk '{print $2}'| sed 's/PID/ /'`
    PID=`ps -ef |grep DListenPort=6300 |grep -v grep |awk '{print $2}'`
    echo $PID
    if [ ${PID} ]
    then
    echo Stopping NodeManager ...
    kill -9 ${PID}
    print 'Process '$PID' killed'
    sleep 5
    else
    print 'NodeManager is not currently running\n'
    fi
    rm ${NODEMGR_BIN}/nohup.out
    # start the NodeManager back up...
    echo '\nStarting NodeManager, tail nohup.out for status...\n'
    ${NODEMGR_BIN}/startNodeManager.sh 165.79.164.14 6300 >${NODEMGR_BIN}/nohup.out 2>&1 &
    As you can see this script simply checks to see if the nodemanager and is currently running, if so it kills it and then starts it using WebLogic's own ./startNodeManager.sh script.
    We also see the following output in the nodemanager.log file
    <Mar 12, 2010 3:55:56 AM> <INFO> <dstDev10> <States = {Dev10FDB2=UNKNOWN, Dev10FDB1=UNKNOWN, Dev10MS2=RUNNING, Dev10CP1=RUNNIN
    G, Dev10CP2=UNKNOWN, dstDevAs920=UNKNOWN, Dev10MS3=RUNNING, Dev10MS4=RUNNING, dstDevMS55=UNKNOWN, Dev10Misc12=UNKNOWN, Dev10MS
    1=RUNNING, dstDevMS6=RUNNING, Dev10MiscWS1=RUNNING, Dev10MS22=UNKNOWN, Dev10CM1=RUNNING, Dev10QVServer-B=UNKNOWN, Dev10MS44=UN
    KNOWN, Dev10QVServer-A=UNKNOWN, domain_bak=UNKNOWN, Dev10CM2=UNKNOWN, Dev10Misc1=RUNNING, Dev10Blue1=UNKNOWN, Dev10AdminServer
    =UNKNOWN, Dev10RefServMS2=UNKNOWN, Dev10RefServMS1=RUNNING, dstDevMS66=UNKNOWN, Dev10FmMS1=UNKNOWN, Dev10MS12=UNKNOWN, Dev10MS
    32=UNKNOWN, dstDevMS4=UNKNOWN, dstDevMS5=RUNNING, Dev10FM1=UNKNOWN, Dev10FM2=UNKNOWN, data=UNKNOWN}>
    <Mar 12, 2010 3:55:58 AM> <INFO> <dstDev10> <States = {Dev10FDB2=UNKNOWN, Dev10FDB1=UNKNOWN, Dev10MS2=RUNNING, Dev10CP1=RUNNIN
    G, Dev10CP2=UNKNOWN, dstDevAs920=UNKNOWN, Dev10MS3=RUNNING, Dev10MS4=RUNNING, dstDevMS55=UNKNOWN, Dev10Misc12=UNKNOWN, Dev10MS
    1=RUNNING, dstDevMS6=RUNNING, Dev10MiscWS1=RUNNING, Dev10MS22=UNKNOWN, Dev10CM1=RUNNING, Dev10QVServer-B=UNKNOWN, Dev10MS44=UN
    KNOWN, Dev10QVServer-A=UNKNOWN, domain_bak=UNKNOWN, Dev10CM2=UNKNOWN, Dev10Misc1=RUNNING, Dev10Blue1=UNKNOWN, Dev10AdminServer
    =UNKNOWN, Dev10RefServMS2=UNKNOWN, Dev10RefServMS1=RUNNING, dstDevMS66=UNKNOWN, Dev10FmMS1=UNKNOWN, Dev10MS12=UNKNOWN, Dev10MS
    32=UNKNOWN, dstDevMS4=UNKNOWN, dstDevMS5=RUNNING, Dev10FM1=UNKNOWN, Dev10FM2=UNKNOWN, data=UNKNOWN}>
    <Mar 12, 2010 3:56:39 AM> <INFO> <dstDev10> <States = {Dev10FDB2=UNKNOWN, Dev10FDB1=UNKNOWN, Dev10MS2=RUNNING, Dev10CP1=RUNNIN
    G, Dev10CP2=UNKNOWN, dstDevAs920=UNKNOWN, Dev10MS3=RUNNING, Dev10MS4=RUNNING, dstDevMS55=UNKNOWN, Dev10Misc12=UNKNOWN, Dev10MS
    1=RUNNING, dstDevMS6=RUNNING, Dev10MiscWS1=RUNNING, Dev10MS22=UNKNOWN, Dev10CM1=RUNNING, Dev10QVServer-B=UNKNOWN, Dev10MS44=UN
    KNOWN, Dev10QVServer-A=UNKNOWN, domain_bak=UNKNOWN, Dev10CM2=UNKNOWN, Dev10Misc1=RUNNING, Dev10Blue1=UNKNOWN, Dev10AdminServer
    =UNKNOWN, Dev10RefServMS2=UNKNOWN, Dev10RefServMS1=RUNNING, dstDevMS66=UNKNOWN, Dev10FmMS1=UNKNOWN, Dev10MS12=UNKNOWN, Dev10MS
    32=UNKNOWN, dstDevMS4=UNKNOWN, dstDevMS5=RUNNING, Dev10FM1=UNKNOWN, Dev10FM2=UNKNOWN, data=UNKNOWN}>
    <Mar 12, 2010 3:56:40 AM> <INFO> <dstDev10> <States = {Dev10FDB2=UNKNOWN, Dev10FDB1=UNKNOWN, Dev10MS2=RUNNING, Dev10CP1=RUNNIN
    G, Dev10CP2=UNKNOWN, dstDevAs920=UNKNOWN, Dev10MS3=RUNNING, Dev10MS4=RUNNING, dstDevMS55=UNKNOWN, Dev10Misc12=UNKNOWN, Dev10MS
    1=RUNNING, dstDevMS6=RUNNING, Dev10MiscWS1=RUNNING, Dev10MS22=UNKNOWN, Dev10CM1=RUNNING, Dev10QVServer-B=UNKNOWN, Dev10MS44=UN
    KNOWN, Dev10QVServer-A=UNKNOWN, domain_bak=UNKNOWN, Dev10CM2=UNKNOWN, Dev10Misc1=RUNNING, Dev10Blue1=UNKNOWN, Dev10AdminServer
    =UNKNOWN, Dev10RefServMS2=UNKNOWN, Dev10RefServMS1=RUNNING, dstDevMS66=UNKNOWN, Dev10FmMS1=UNKNOWN, Dev10MS12=UNKNOWN, Dev10MS
    32=UNKNOWN, dstDevMS4=UNKNOWN, dstDevMS5=RUNNING, Dev10FM1=UNKNOWN, Dev10FM2=UNKNOWN, data=UNKNOWN}>
    <Mar 12, 2010 3:57:20 AM> <INFO> <dstDev10> <States = {Dev10FDB2=UNKNOWN, Dev10FDB1=UNKNOWN, Dev10MS2=RUNNING, Dev10CP1=RUNNIN
    G, Dev10CP2=UNKNOWN, dstDevAs920=UNKNOWN, Dev10MS3=RUNNING, Dev10MS4=RUNNING, dstDevMS55=UNKNOWN, Dev10Misc12=UNKNOWN, Dev10MS
    1=RUNNING, dstDevMS6=RUNNING, Dev10MiscWS1=RUNNING, Dev10MS22=UNKNOWN, Dev10CM1=RUNNING, Dev10QVServer-B=UNKNOWN, Dev10MS44=UN
    KNOWN, Dev10QVServer-A=UNKNOWN, domain_bak=UNKNOWN, Dev10CM2=UNKNOWN, Dev10Misc1=RUNNING, Dev10Blue1=UNKNOWN, Dev10AdminServer
    =UNKNOWN, Dev10RefServMS2=UNKNOWN, Dev10RefServMS1=RUNNING, dstDevMS66=UNKNOWN, Dev10FmMS1=UNKNOWN, Dev10MS12=UNKNOWN, Dev10MS
    32=UNKNOWN, dstDevMS4=UNKNOWN, dstDevMS5=RUNNING, Dev10FM1=UNKNOWN, Dev10FM2=UNKNOWN, data=UNKNOWN}>
    We also get this in the nodemanger.log file for each server in the domain.
    <Mar 11, 2010 1:11:00 PM> <Info> <dstDev10> <Dev10MS3> <Startup configuration properties loaded from "/bea/apps/dev/wls101/dst
    Dev10/servers/Dev10MS3/data/nodemanager/startup.properties">
    This appears to be the correct behavior but we get it for all servers multiple time.
    Here is a partial directory listing for out weblogic10/common/nodemanager directory.
    -rw-rw-r-- 1 beaadmin bea 0 Mar 11 13:13 nodemanager.log.24.lck
    -rw-rw-r-- 1 beaadmin bea 0 Mar 11 13:13 nodemanager.log.23.lck
    -rw-rw-r-- 1 beaadmin bea 0 Mar 11 13:13 nodemanager.log.22.lck
    -rw-rw-r-- 1 beaadmin bea 0 Mar 11 13:13 nodemanager.log.21.lck
    -rw-rw-r-- 1 beaadmin bea 0 Mar 11 13:13 nodemanager.log.20.lck
    -rw-rw-r-- 1 beaadmin bea 0 Mar 11 13:13 nodemanager.log.2.lck
    -rw-rw-r-- 1 beaadmin bea 0 Mar 11 13:13 nodemanager.log.19.lck
    -rw-rw-r-- 1 beaadmin bea 0 Mar 11 13:13 nodemanager.log.18.lck
    -rw-rw-r-- 1 beaadmin bea 0 Mar 11 13:13 nodemanager.log.17.lck
    -rw-rw-r-- 1 beaadmin bea 0 Mar 11 13:13 nodemanager.log.16.lck
    -rw-rw-r-- 1 beaadmin bea 0 Mar 11 13:13 nodemanager.log.15.lck
    -rw-rw-r-- 1 beaadmin bea 0 Mar 11 13:13 nodemanager.log.14.lck
    -rw-rw-r-- 1 beaadmin bea 0 Mar 11 13:13 nodemanager.log.13.lck
    -rw-rw-r-- 1 beaadmin bea 0 Mar 11 13:13 nodemanager.log.12.lck
    -rw-rw-r-- 1 beaadmin bea 0 Mar 11 13:13 nodemanager.log.11.lck
    -rw-rw-r-- 1 beaadmin bea 0 Mar 11 13:13 nodemanager.log.10.lck
    -rw-rw-r-- 1 beaadmin bea 3708 Mar 11 13:13 nodemanager.log.29
    -rw-rw-r-- 1 qvsd qvsdg 0 Mar 11 13:13 nodemanager.log.lck
    -rw-rw-r-- 1 beaadmin bea 0 Mar 11 13:13 nodemanager.log.1.lck
    -rw-rw-r-- 1 beaadmin bea 18399 Mar 11 13:13 nodemanager.log.1
    -rw-rw-r-- 1 beaadmin bea 225604 Mar 11 13:25 nodemanager.log
    -rw-rw-r-- 1 beaadmin bea 230423 Mar 12 03:57 nodemanager.log.4
    As you can see we get a log of .lck file of 0 bites created at the same time. We get on .lck file for every instance of NodeManager that gets created.
    Just to clarify, when we run out script we get multiple instances of nodemanager running "ALL" listening on the same "SAME" port and IP. It's a wierd scenario, the only way we can stop the processes from spawning is to rename the startNodeManager.sh to some other name so it can't be found, and we also tried to start it with the command line
    nohup ./startNodeManager.sh <xxx.xxx.xxx.xxx> <port> & and we get the same results.

  • How to execute external  spawned process using  java

    Hi,
    I am executing PGP from command line using java.
    For adding the public key I use Runtime object like this
    Runtime rt = Runtime.getRuntime();
    Process process = rt.exec("pgp -ka "+"d:/Mangesh/pubkey/sandy.asc "+"C:/PROGRA~1/NETWOR~1/PGPNT/keyrings/pubring.pkr");PGP is executing this but inbetween it asked for confirmation "Do you want to add public key (y/n)"
    I am providing data to process this way:
    PrintWriter pw = new PrintWriter(new OutputStreamWriter( process.getOutputStream()));
    pw.write('y');
    pw.flush();But after this their is no execution from PGP and console remains until I closed it.
    PGP is waiting for ENTER KEY
    How can I provide ENTER KEY from java
    This is right method ??? or any other options are available??
    I am awaiting for your valuable suggestions .
    Regards
    Man479

    On Windows the "enter key" consists of two characters: carriage return and a line feed (\r\n). You may have to send both. If that doesn't work, pgp is not reading the reply through stdin, only through the console, and there's no way to pass the 'y' to it through Java.

  • Handling of service-spawned processes

    I have created a service. Here is its manifest:
    <?xml version="1.0"?>
    <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
    <service_bundle type='manifest' name='MYpackage:my_service'>
    <service
        name='application/my_service'
        type='service'
        version='1'>
        <create_default_instance enabled='true' />
        <single_instance />
        <dependency
            name='multi-user'
            type='service'
            grouping='require_all'
            restart_on='none'>
            <service_fmri value='svc:/milestone/multi-user:default' />
        </dependency>
        <dependent
            name='multi-user-server'
            grouping='exclude_all'
            restart_on='none'>
            <service_fmri value="svc:/milestone/multi-user-server:default"/>
        </dependent>
    <exec_method
            type='method'
            name='start'
            exec='/usr/bin/my_service --start'
            timeout_seconds='60'
        />
        <exec_method
            type='method'
            name='stop'
            exec='/usr/bin/my_service --stop'
            timeout_seconds='60'
        />
        <property_group name='startd' type='framework'>
            <propval name='ignore_error' type='astring' value='core,signal' />
        </property_group>
    <stability value='Unstable' />
        <template>
            <common_name>
                <loctext xml:lang='C'>
                    GAS Install agent for installing an application zone.
                </loctext>
            </common_name>
            <documentation>
            </documentation>
        </template>
    </service>
    </service_bundle>/usr/bin/my_service is a Perl script. It executes a shell script which in turn starts some processes, installs packages whose postinstall scripts start more processes. After several minutes the Perl script ends, the shell script ends as well, but a few processes are left. When I issue "init 6", svc.startd starts to disable services but when it's my service's turn to be stopped, svc.startd does not run its stop method, instead it waits for all of the processes that were left by the service to quit. Only when I kill the processes manually, svc.startd disables my service and the rest of services, then the system reboots.
    Is it a coincidence that before svc.startd stops my service it waits for all processes that the service started? Why it expects that the processes will quit before the service is disabled? Why does it wait for the processes at all instead of just stopping all services and then killing all left-over processes?
    EDIT: I did an experiment. I modified /usr/bin/my_service not to execute anything else but just sleep forever. After doing "init 6" svc.startd again paused before disabling my service. Manual "svcadm disable my_service" (which just kills a saved PID of my service) helped. Now I'm really confused... Please help.
    Edited by: swiergot on Jun 17, 2008 2:25 AM

    Wish I had a better answer for you. Telling you something that you already know, but if you've defined the Global's property with "Has instance access" then you can catch the exceptions in the process.
    Undoubtedly though, you've got a standalone Global or you would not be asking the question. The exception from a Global that does not have instance access can't get caught in the process because there was never an instance created for it inside the process.

  • Spawning processes from an executable

    I have a LV2012 program that needs to run a number of subVIs as separate, standone processes in the background. The "Start Asyncronous Call" function works great for this.
    However, I need to build an executable that has the same functionality, to be run on a machine that just has the RunTime Engine.  How do I do this?
    The Start Asyncronous Call function is expecting a VI, so that that can't be used in the executable. If I build the subVIs as DLLs and call them with Call Library Function Node, it's not clear to me how to run the DLLs as a separate processes. If I build the subVIs as EXEs and call them with System Exec, the subVI front panel pops up; I have many of these so it gets ugly.
    Do I need to build the subVI as a dll, then put that dll in a vi wrapper, build the wrapper as an EXE, then call that with System Exec? Surely there is a cleaner way to do this.
    Thank you in advance for any advice you can offer.
    Attachments:
    Call.zip ‏332 KB

    Instead of using that "type specifier refnum" I prefer to drop a static VI reference on the diagram. Drag and drop the subVI you want to launch into the static VI reference. It will then link it to that VI. Right click the static VI reference and select strictly typed reference. This VI will then be compiled into your code when you build the executable automatically. 
    CLA, LabVIEW Versions 2010-2013
    Attachments:
    staticref.png ‏8 KB

  • How to spawn processes via ampersand within bashrc startup script

    How to properly "enclose" or handle the special character (& - the background character) within the bash shell's .bashrc startup file?
    It does not work for these 2 examples (\& and &):
    alias abc='emacs $* \&'
    alias xyz='emacs $* &'
    Please advise. Thanks.

    Actually the problem is that the $* (or $@) is expanded when the alias is created  and of course at creation time the $* is empty.
    So it's not really so much
    emacs & $*
    as
    emacs & filename
    But  either way you are correct that to pass a command line arg in a case like this you need to use a function.
    But the fact still remains that the standard OS X emacs will block waiting for a terminal if started in the bg.
    regards
    Message was edited by: Frank Caggiano

Maybe you are looking for

  • You do not have sufficient privileges to complete this installation for all users of the machine. Log on as administrator and then retry this installation

    Hi all Have seen a couple threads regarding this but unfortunately nothing that solves my problem thus far! Right now, our developers are using the Domain Admin account to promote their website code using MSI files.  I'd like to change this as I feel

  • Advice  on long running queries

    Hi all I am a junior dba and facing problem of log runninig queries. Can anyone help and let me know how to resolve the long running queries. I mean what should be the approach to findout out the problem. Please guide me. thanx Ajay

  • Muse CC Accordians No Longer working

    I moved accordians that were on one page to separate pages and they no longer push other items on the page down. They were all fine until I upgraded to Muse CC2014.3. I have tried all of the obvious fixes found in the Adobe forum and I have changed t

  • Can I delete extra themes?

    I'm trying to regain some space on my HD. I see that there is an NTSC and PAL version of IDVD's themes. I don't plan on using PAL format ever. What I'm wondering is can I safely delete the PAL themes and not screw up IDVD?

  • Without "User Exit" how to solve the problem

    Hi all, We are using DEBMAS06 to send the data to a legacy system.The data sent will consist primarily of address and partner information extracted via IDOC based on configured change pointers. The change pointer settings in SAP R/3 will ensure that