Too many java processes.
Hi,
I have installed Forms & Reports Services Standalone 10.1.2.0.2 on RHEL 5 and applied the 10.1.2.3 patch to it. After the patch, the java processes continue to grow so fast that sometimes when I open a new session and try to switch to oracle user, I get a "too many processes" error.
Apparently these java processes are from the Reports Server, however I haven't even yet configured the Reports server and am not doing anything with the reports server at the moment. Right now, I'm only configuring the Forms server.
So, I am wondering what is going on here - why are there so many java processes and what to do about it?
Thanks.
Hi,
Based on dependency better you can go for 3 parellel process at a time as what we are doing in our project.
check schedule time for each your process chain which fetchs data from source system (Info Package) and re schedule them which should not execute at a time (make it max 3) and try again
Regards
BVR
Similar Messages
-
Hi
I will have to build process chain to cube 0SD_C03 and the datasources are
2LIS_12_VCITM
2LIS_12_VCHDR
2LIS_12_V_ITM
2LIS_12_VDHDR
2LIS_12_VAITM
2LIS_12_VDITM
2LIS_12_VADHDR
Now the question is after providing the links between " Delete index" process and individual loading process (Infopackages),the message I am getting in the checking view is " Too many parallel processes for chosen server " and furthe,r the suggested procedure by system is " Reduce the number of parallel processes in the chain or include sub-chains :
How can I reduce the processes? Is there any alterante method of building this flow to avoid warning messages..
Though these are warning messages ,what is the correct flow of building process chain for this without getting any warning messages.Hi,
Based on dependency better you can go for 3 parellel process at a time as what we are doing in our project.
check schedule time for each your process chain which fetchs data from source system (Info Package) and re schedule them which should not execute at a time (make it max 3) and try again
Regards
BVR -
RFC calls are taking too many work process -- system knock out
Hi,
I have an interface remote function, which is going to be called by a java program.
Data is going to be sent to the system, processed and sent back syncronous to the caller.
The calls are working on SAP tables, so I needed to lock and unlock the tables. The java program
is opening many parallell threads and starts them the same time.
That means, that the sap system is getting attacked by many rfc calls on the same function, with the
same user at the same time.
The system has in development 15 dialog work processes set up. If I run that with up to 15 parallell rfc calls, all is working ok!
Let me now explain the problem:
I have programmed the table lock, that it´s trying to lock the table at the beginning of the function.
If it´s not possible it tries it again. At first I have just inserted a one second wait and let that run maximum 3 times. If the table is still locked, it breaks down with an error.
But because the calls come nearly to exactly the same time to the system, the first call locks all others out, and the rest ran out of the 3 seconds and ended up with an error.
So I tried to build an endless loop, which is just ending, when the table could be locked again, or when the runtime of 5 seconds has reached. That means, it´s not waiting for a second, if the table is locked, but it´s trying again and again up to 5 seconds.
That is all ok, because sometime the table is free again and all calls are then processed alright.
BUT if I now run that with MORE than 15 rfc calls from the java program (15 dialog processes are set up), the system got knocked out! It is using all free work processes for the RFC calls and get stucked. I think, the first call is locking the table, and the got stopped by the system. And then all the others are running in the endless loop....
So, shouldn´t be there a limit for dialog processes taken by RFC calls? For example here for this user? In this case it should f.e. be set to 10 free processes with 5, which are reserved for other users...
Any advices?
The second is, how can I change the lock mechanism, that I don´t use an endless loop? Waiting for one second and doing that 3 times, is not good enough... Because all the rfc calls wait then for one second, up to 3 times, and end with an error....
Is it possible to wait for half seconds, or defined milli seconds?
Thank you for all advices!Hi,
What I have understood is you are trying to lock the table in a loop and just checking the duration by explicitly putting wait statement.
Hope you are NOT locking the entire table rather a particular record in each lock.
No need to use explicit wait statement rather its better to let SAP thinks when to lock the table T1 when its already locked by another work process. So just set the wait parameter for the Enqueue function module as 'X' and check how it behaves. Until the table is not unlocked the process will wait.
If you see the wait parameter for the Enqueue function module is not available then create your own lock object for the table and use that. Make sure its getting dequeued else you can understand better
Cheers
Somnath -
Oracle 10g Too Many INACTIVE Processes in V$SESSION
Help.
I have a 10g Catelogue database that I use only for RMAN backups for other databases, it
sits on a Windows 2003 server.
My problem is that it is generating a lot of INACTIVE processes for user SYSMAN to such an
extent I had to increase the processes to 600 from 150 (SQL> Alter System Set Processes=600
Scope=spfile;), but by the rate the INACTIVE processes are coming I get database connection
errors and memory errors after a few minutes/hrs after restarting the database.
SQL> select count(*), username, status, state
2 from v$session
3 group by username,status,state
4 /
COUNT() USERNAME STATUS STATE*
2 SYS ACTIVE WAITED SHORT TIME
15 ACTIVE WAITING
234 SYSMAN INACTIVE WAITING
SYSMAN has about 234 INACTIVE processes above, but that figures rises sharply. After some
moments (1 hour) when I try to run the select statement again I get:
SQL> /
from v$session
ERROR at line 2:
ORA-04030: out of process memory when trying to allocate 123404 bytes (QERGH
hash-agg,kllcqas:kllsltba)
When I exit SQLPLUS and try to login I get this
C:\>sqlplus
SQL*Plus: Release 10.2.0.1.0 - Production on Wed Oct 8 12:55:14 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter user-name: / as sysdba
ERROR:
ORA-12560: TNS:protocol adapter error
Enter user-name:
So I have to restart the database.
Help me solve my problem.
Regards,
KevinThese are the EVENTS and it seems they have the same count and also they constitute the majority
SELECT count(), event*
FROM v$session_event
WHERE SID in (Select SID From V$SESSION WHERE USERNAME = 'SYSMAN' AND Status = 'INACTIVE')
GROUP BY event
ORDER BY Event
COUNT() EVENT*
309 SQL*Net break/reset to client
309 SQL*Net message from client
309 SQL*Net message to client
309 control file sequential read
16 log file sync
The method of the RMAN backup:
I'm using windows scheduler to run RMAN scripts with a command like:
rman target / @livedb catalog / @catalogdb backup database;
Regards,
Kevin -
MTS with too many OS processes
Hi,today i changed some connections to MTS (shared server)
db version is 10.2.0.3
os version aix 5.3.5
after 3 hours, i take the follownig error, no oracle proses can be forked after.
i returned to dedicated server, now everythnig is ok.
at the time of problem, # of oracle prosecces see in the OS was 4000 which is the OS limit for max process a user can create.
it is 2000 in dedicated server case.
what may be the cause.
thanks,
ORA-27300: OS system dependent operation:fork failed with status: 11
ORA-27301: OS failure message: Resource temporarily unavailable
ORA-27302: failure occurred at: skgpspawn3#dispatchers are 2. each with 250 connections.
shared_servers=10
max_shared_servers=40
in the OS, i saw 4000 oracle processes in mixed architecture (dedicated and shared)
whe i turned to just dedicated, i see 2000 processes.
it must be the reverse. -
Too many LISTENER processes (11gR2 Grid Infrastructure (2 nodes))
Greetings -
I get an alert that says that my LISTENER is down (EM Alert Details). It suggests a corrective action
to stop the current running LISTENER and start it again using the listener parameter (listener.ora) from
the database (RDBMS) home. There are two (2) LISTENER processes running (ps -ef | grep LISTENER) .
One process is running from the grid home and the other from the database home however only
the one running from the grid home has a listener parameter file (listener.ora) there are no others.
To confuse me even further the documentation says that I should not set the 'local_listener' parameter
and that the Oracle Agent will maintain this setting.
Any suggestions ?
Thanks in advance.
BrianThanks Rodrigo,
That was VERY helpful.
I disabled the old listener and then
I was able to create a new listener with the correct settings.
I can see the instances on each node using this
expression.
lsnrctl status NEW_LISTENER
However this shows on the first node that +ASM1, DM3, DM31
are available on the second node I see only +ASM2 but nothing else.
I was expecting DM3, DM32 .
Now when I first created the new listener I read that the 'local_listener'
setting need NOT be set. When I attemptied to unset that parameter then
I lost the local instances. I reset the local_listener as before
and the local instance on node one returned. Not on node two however.
My question: Do I need to set the 'local_listener' on each instance to the same
value or to different values to reflect which node they are configured for ?
I cannot see it now but I remember there is a section that references the
first node 'node_one-vip' .
Should the second node's local_listener section be 'node_two-vip' ?
Now if it need not be set this then something else has to occur to make it work.
Sorry for not being more brief,
Brian -
Hi,
Lately I've been having some minor problems with websites. I was told
that the problems are Java related.
I checked in Add\Remove Programs and there's 4 listings:
1) J2SE Runtime Environment 5.0 update 2 ? 125MB
2) J2SE Runtime Environment 5.0 update 9 ? 119MB
3) Java 2 Runtime Environment, SE v1.4.1_02 ? 1.72MB
4) Java Webstart ? 46.13MB
Plus, when I did a search of my C: drive, there are 39 listings
everywhere from Doc's & Settings\Adm to WinSys32, for .java and Java.
Also, in C:\Windows\Downloaded Program files, there's 2 listings for
Java Runtime Environment 1.4.1_02, both listings say "installed".
Could having 2 listings in Downloaded Program Files be causing the
problems?
Or, should I go to Add\Remove Programs, uninstall all the Java stuff, and start fresh? What about the registry, also? I've no qualms about editing the registry.
If uninstall is your recommendation, other than what I mentioned above,
is there a better way to uninstall? If so, where and how? I'm "fairly"
competent with computing, but I don't want to do something wrong.
Also, would it be possible to send me a link to download the
latest\newest Sun Java for the "home user"? I do not have Microsoft
Java on my system.
My OS: Win XP Pro, SP1, with all patches and hotfixes installed and
twice the memory I'll ever need.
Thank you for your time, I appreciate it.
Sincerely,
jpChrisJust remove everything except for the latest JRE version (so 5.02 and 1.4.1) and Webstart using the System Panel. Won't solve any problem but at least releases some space.
Also, would it be possible to send me a link to
download the latest\newest Sun Java for the "home
user"? Look up. See the item called "Downloads". Get the J2SE 6.0 JRE. Scrap all others if you want to upgrade to that. -
'''looking at my add-ons list, I see several Java Consoles, going all the way from 6.0.07 to 6.0.29 - they are all enables. do I need all of them or should I do a cleanup and keep only the latest one?'''
-> [[Using the Java plugin with Firefox#w_troubleshooting|Remove outdated Java plugin files from the Firefox plugins folder]]
-> Multiple Java Console extensions
* http://kb.mozillazine.org/Java#Multiple_Java_Console_extensions
Check and tell if its working. -
Dear all,
I am using Oracle 10.2.0.3 on Linux.
When I do ps -ef on the server I see a lot of java process spawned. There are so jobs or anything running which executes any java processes. Then why is it so.
Please help.
Regards
SLTry not making any threads. Just do a single Thread.sleep in main. Then count how many java processes there are. If your OS implements threads as lightweight processes, there will be several. One will be your main thread and the others will be those of the VM.
-
Does a java process in crontab duplicate itself?
I have put a java process in crontab(in unix), say for example...
a command:
#java ankie
to run every minute.
running this should print "hello" each time.What i want to know is that once this command runs,does it create a new java proces each time it runs and exits, or the process gets killed and then a new thread is activated.So after 5 min, how many java processes associated with ankie should be ideally running....5 or 1?Please help me with this.Is this homework or something?
How long does it take to run one process?
What happens when you do $java MyClass & sleep 60 ; java MyClass & sleep 60 ; ...etc... on the command line?
If the process runs and exits then it runs and exits. The only thing that migh make a differenc that I can think of is if you don't handle the in/out/err streams properly as shown in the article I linked to. -
"java.io.IOException: Too many open files" in LinuX
Hi Developers,
* I am continiously running and processing more than 2000 XML files by using SAX and DOM.....
* My process is as follows,
- Converting the XML file as Document object by DOM....
- And that DOM will be used while creating log file report, that log file will be created after executing all XML files..
* After processing approx 1000 files, it throws *"java.io.IOException: Too many open files" in LinuX system* ....
* I have googled more and more in all sites including sun forum also, but they are telling only to increase the system config by ULIMIT in linux....If i increase that its executing well without exception........
* My question is, Is it possible to do it by JAVA code itself or any other VM arguments like -Xms512m and -Xmx512m.....
* Please let me know , if you have any idea.....
Thanks And Regards,
JavaImranDoh! I forgot to post my little code sample...
package forums.crap;
import java.io.*;
import java.util.*;
public class TooManyFileHandles
private static final int HOW_MANY = 8*1024;
public static void main(String[] args) {
List<PrintWriter> writers = new ArrayList<PrintWriter>(HOW_MANY);
try {
try {
for (int i=1; i<=HOW_MANY; i++ ) {
writers.add(new PrintWriter("file"+i+".txt"));
} finally {
for (PrintWriter w : writers) {
if(w!=null)w.close();
} catch (Exception e) {
e.printStackTrace();
}... and the problem still isn't OOME ;-)
Cheers. Keith. -
Java.util.zip.ZipException: Too many open files on Linux
Hi,
We have web application running on Caucho's resin server on jdk 1.5.0_11 and Red hat Linux. We are noticing that java process is running out of file handles within 24-30 hours. We have file limit of 5000 which it consumes in 24 hours throwing 'java.util.zip.ZipException: Too many open files'.
I have made sure all sorts of file handles are closed from application point of view. Here is the snapshot of lsof (list of file handles) from java process. The following list keeps growing until it runs out of limit. Do you have tips/suggestions on how to mitigate this problem (considering we dont want to increase ulimit for this process)? Also, can you make out any thing more from the description of file handles like, are they unclosed POP3 connections or URL connection to external sites?
java 7156 resin 120u IPv4 34930051 UDP localhost.localdomain:59693
java 7156 resin 121u IPv4 34927823 UDP localhost.localdomain:59663
java 7156 resin 122u IPv4 34931861 UDP localhost.localdomain:59739
java 7156 resin 123u IPv4 34932023 UDP localhost.localdomain:59745
java 7156 resin 124u IPv4 34930054 UDP localhost.localdomain:59700
java 7156 resin 125u IPv4 34927826 UDP localhost.localdomain:59665
java 7156 resin 126u IPv4 34927829 UDP localhost.localdomain:59666
java 7156 resin 127u IPv4 34930057 UDP localhost.localdomain:59703
java 7156 resin 128u IPv4 34930713 UDP localhost.localdomain:59727
java 7156 resin 129u IPv4 34930716 UDP localhost.localdomain:59730
java 7156 resin 130u IPv4 34932238 UDP localhost.localdomain:59789
java 7156 resin 131u IPv4 34932026 UDP localhost.localdomain:59749
java 7156 resin 132u IPv4 34932221 UDP localhost.localdomain:59770
java 7156 resin 133u IPv4 34932224 UDP localhost.localdomain:59775
java 7156 resin 134u IPv4 34932029 UDP localhost.localdomain:59753
java 7156 resin 135u IPv4 34932032 UDP localhost.localdomain:59754
java 7156 resin 138u IPv4 34932035 UDP localhost.localdomain:59760
java 7156 resin 139u IPv4 34932038 UDP localhost.localdomain:59763
java 7156 resin 140u IPv4 34932227 UDP localhost.localdomain:59780
java 7156 resin 141u IPv4 34932230 UDP localhost.localdomain:59781
java 7156 resin 144u IPv4 34932234 UDP localhost.localdomain:59786
java 7156 resin 146u IPv4 34932241 UDP localhost.localdomain:59792
java 7156 resin 147u IPv4 34932247 UDP localhost.localdomain:59802Finally we resolved this issue. It was oracle driver which had some compatibility issue, we upgraded our Oracle client driver to newer version, and this fixed the problem. Base line, there was nothing wrong with application code, code was doing good resource clean up, but oracle driver was leaking handles per every connection.
-
Java.io.FileNotFoundException (Too many file open)
Hi,
I have an application wherein I have to open an XMl file, make amends to it and then write it back. It is possible that the same XML file be opened more than once. After processing lots of XMl files I get the following error:
[java] java.io.FileNotFoundException: /nas/bansalp/app/databases/databases/IntActe_human_528_psimi.xml (Too many open files)
[java] at java.io.FileInputStream.open(Native Method)
[java] at java.io.FileInputStream.<init>(FileInputStream.java:106)
[java] at java.io.FileInputStream.<init>(FileInputStream.java:66)
[java] at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
[java] at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
[java] at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:653)
[java] at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:186)
[java] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)
[java] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
[java] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
[java] at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:225)
[java] at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
[java] at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
[java] at alliance.dps.Commons.makedocument(Unknown Source)Code for makedocument is as follows:
public static Document makedocument(File file) throws Exception
Document response = null;
DocumentBuilder builder = null;
try
DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();
builder = builderFactory.newDocumentBuilder();
if (file==null)
response = builder.newDocument();
else
response = builder.parse(file);
catch(Exception e) { e.printStackTrace(); }
return response;
}Here also I am not explicitely opening any handle. parse method should close the file after creating a DOM tree.
I would appreciate if someone could give me some directions as to what might be wrong.
- ParitI'm finding that builder.parse(File) doesn't close the file. I now create a FileInputStream from the File and make sure I close it myself in a finally{} block.
-
Java.io.IOException: Too many open files
I am running web-service, by which i have to run .sh file on linux. My code is as follow,
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class DomRenewProcessN4Vrsgn
Process process;
String s;
String step;
public String renewDomain(String ACTIVITY_ID,String DOMAIN_NAME,String DURATION,String EXPIRY_DATE)
//readOutput(ITEM_ID,TLD);
Runtime runtime;
runtime = Runtime.getRuntime();
String domRegisterCmd = "";
domRegisterCmd = "sh /home/kesharil/DomainRenew/n4vrsgn/DomainRenew-n4vrsgn.sh"+ " " ACTIVITY_ID " " DOMAIN_NAME" "+DURATION+" "+EXPIRY_DATE;
try
runtime = Runtime.getRuntime();
step=runtime.toString();
process =runtime.exec(domRegisterCmd);// + " " ITEM_ID " "+TLD);
step=step+process;
BufferedReader reader = new BufferedReader(
new InputStreamReader(process.getInputStream()));
step=step+reader.toString();
s = reader.readLine();
step=step+s.toString();
try
process.waitFor();
catch (InterruptedException e)
return e.getMessage()+1;
catch (IOException ex)
return ex.getMessage()+step;
process.destroy();
int k=process.exitValue();
String x=String.valueOf(k);
return x;
After every 5-6 days, I am getting same error, "java.io.IOException: Too many open files"hi,
domRegisterCmd = "sh /home/kesharil/DomainRenew/n4vrsgn/DomainRenew-n4vrsgn.sh{code}
you are opening the above file and not closing,,
so that each and every file still in existence, one the memory full, then you are getting this error..
please to confirm on this.. -
Hi,
I often get this message in my logs;
%COMMON_FIB-6-FIB_RECURSION: has too many (8) levels of recursion during process switch
Does anyone have any idea what this means? This same router has, on average, one disconnect from our GRE tunnel each day and I can't connect to it externally until the cable modem is rebooted. The log above is the only thing I've got to go on really. Everything else looks normal.
Thanks!i am using weblogic 10.3 but still getting <Oct 8, 2009 3:26:35 AM EDT> <Error> <Application Poller> <BEA-149411> <I/O exception encountered java.io.FileNotFoundException: /my123Domain456/123456ServerName/servers/123456ServerName/cache/.app_poller_lastrun (Too many open files).
java.io.FileNotFoundException:
My clients are getting to others as I use Oracle 10G Rac oracle 10 Weblogic and getting 100s of problems, save me geeks.
Maybe you are looking for
-
I can't delete pictures in my "drop box" gallery... HELP!
I recently found a "drop box" (2 words; not Dropbox) folder in my images on my S3. I didn't put this there and there are 3 pictures inside that I can't delete. I also can't delete the folder itself. These pictures are very old and I have no idea how
-
How to save the edited fields in ALV list
Hi hope you could help me find a solution, I made my fields editable in ALV grid display as you can see in the code ZID_NUM, ZLAST_NAME and ZMIDDLE_NAME is editable.. an example scenario would be if I execute the program it will show me 5 lines, all
-
Hi all, In a SAPscript I found the following: &W_INTEGER_TOTAL(>9.2)& I know the 9.2 means display 9 digits "before the comma" and 2 after. However does anyone know the meaning of the " > " sign?
-
When I press the home button my iPad won't go to he home page. It is as though the button isn't working properly?
-
Expanding and Centering ImageItems appearing as Buttons
Hi, I am developing a midlet for school which has a Form as main menu. I've added StringItems appearing as Buttons to this menu and I want them to fill the complete screen so I used the LAYOUT.EXPAND. No problems so far, everything works but I want t