Just i notice a heap memory notification in alert.log file
Hi,
i notice that whenever a user exectuing a qurey this heap memory notification is coming in alert.log file.
Memory Notification: Library Cache Object loaded into SGA
Heap size 2294K exceeds notification threshold (2048K).
what it is actully tell me plz.
Duplicate post. Seems you don't want to read the replies to your previous similar question.
geting error in alert log file
Jaffar
Similar Messages
-
Memory notification in Alert Log
I'm seeing the following in my alert log. Does this mean i am running out of SGA memory? if so, How do i increase it?
Wed Oct 22 10:10:29 2008
Memory Notification: Library Cache Object loaded into SGA
Heap size 2507K exceeds notification threshold (2048K)
KGL object name :Select status from ALL_OBJECTS where object_name = :objname and object_type = :objtype and owner = :ownere
Wed Oct 22 11:39:10 2008
Thread 1 advanced to log sequence 11479
Current log# 3 seq# 11479 mem# 0: /u03/oradata/psrdev/onlinelog/redo03a.log
Current log# 3 seq# 11479 mem# 1: /u03/oradata/psrdev/onlinelog/redo03b.log
Wed Oct 22 12:39:37 2008
Memory Notification: Library Cache Object loaded into SGA
Heap size 2543K exceeds notification threshold (2048K)
KGL object name :Select owner, object_type from all_objects where object_name = :ObjName
order by 2 DESC
Wed Oct 22 13:46:38 2008
Thread 1 advanced to log sequence 11480
Current log# 1 seq# 11480 mem# 0: /u01/oradata/psrdev/onlinelog/redo01a.log
Current log# 1 seq# 11480 mem# 1: /u01/oradata/psrdev/onlinelog/redo01b.logI've seen this before. Search MetaLink on "Heap size exceeds notification threshold" or "Memory Notification: Library Cache Object loaded into SGA" (both copied straight from your alert log) and see note Note:330239.1
Metalink has an amazingly rich search. I've often found the solution to problems like this simply by copying relevant text from my alert log and pasting it into the MetaLink search field. -
Working on following environment:
Platform -> Windows Server 2003 Version V5.2 Service Pack 2 32-bit
Oracle Database -> 10.2.0.1
My database was going to shutdown(auto) after 5 minutes of database startup. When I investigate alert log got following messages in it:
Memory Notification: Library Cache Object loaded into SGA
Heap size 2210K exceeds notification threshold (2048K)
KGL object name :XDB.XDbD/PLZ01TcHgNAgAIIegtw==
Errors in file d:\oracle10g\product\10.2.0\admin\ndb\bdump\ndb_ckpt_7024.trc:
ORA-04030: out of process memory when trying to allocate 8716 bytes (pga heap,Get krha asynch mem)
CKPT: terminating instance due to error 4030
Mon Mar 14 11:05:30 2011
Errors in file d:\oracle10g\product\10.2.0\admin\ndb\bdump\ndb_q001_5816.trc:
ORA-04030: out of process memory when trying to allocate bytes (,)
Then I follow metalink note 330239.1 and got the issue resolved related to "shutdown" but getting some new error messages in alert log. Please see the below error messages:
Thread 1 cannot allocate new log, sequence 77933
Private strand flush not complete
Current log# 2 seq# 77932 mem# 0: D:\ORACLE10G\PRODUCT\10.2.0\ORADATA\NDB\REDO0_02.LOG
Thread 1 advanced to log sequence 77933
Current log# 1 seq# 77933 mem# 0: D:\ORACLE10G\PRODUCT\10.2.0\ORADATA\NDB\REDO0_01.LOG
Mon Mar 14 12:34:08 2011
Errors in file d:\oracle10g\product\10.2.0\admin\ndb\bdump\ndb_smon_7300.trc:
ORA-00604: error occurred at recursive SQL level 2
ORA-04030: out of process memory when trying to allocate 404 bytes (Typecheck,seg:kggfaAllocSeg)
Mon Mar 14 12:49:00 2011
Errors in file d:\oracle10g\product\10.2.0\admin\ndb\bdump\ndb_j000_7060.trc:
ORA-12012: error on auto execute of job 27
ORA-04030: out of process memory when trying to allocate 16428 bytes (pga heap,kgh stack)
Mon Mar 14 12:49:34 2011
Process startup failed, error stack:
Mon Mar 14 12:49:35 2011
Errors in file d:\oracle10g\product\10.2.0\admin\ndb\bdump\ndb_psp0_6908.trc:
ORA-27300: OS system dependent operation:spcdr:9261:4200 failed with status: 997
ORA-27301: OS failure message: Overlapped I/O operation is in progress.
ORA-27302: failure occurred at: skgpspawn
Mon Mar 14 12:49:35 2011
Process J001 died, see its trace file
Mon Mar 14 12:49:35 2011
kkjcre1p: unable to spawn jobq slave process
Mon Mar 14 12:49:36 2011
Errors in file d:\oracle10g\product\10.2.0\admin\ndb\bdump\ndb_cjq0_6280.trc:
Mon Mar 14 12:53:51 2011
Errors in file d:\oracle10g\product\10.2.0\admin\ndb\bdump\ndb_j000_7060.trc:
ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [unable_to_trans_pc] [PC:0x603F1A55] [ADDR:0xBB] [UNABLE_TO_READ] []
Mon Mar 14 12:53:53 2011
Errors in file d:\oracle10g\product\10.2.0\admin\ndb\bdump\ndb_j000_7060.trc:
ORA-04030: out of process memory when trying to allocate 753120 bytes (pga heap,kco buffer)
ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [unable_to_trans_pc] [PC:0x603F1A55] [ADDR:0xBB] [UNABLE_TO_READ] []
Mon Mar 14 12:54:53 2011
Errors in file d:\oracle10g\product\10.2.0\admin\ndb\bdump\ndb_q000_5424.trc:
ORA-04030: out of process memory when trying to allocate 123404 bytes (QERHJ hash-joi,kllcqas:kllsltba)
Mon Mar 14 13:21:24 2011
Errors in file d:\oracle10g\product\10.2.0\admin\ndb\bdump\ndb_mmon_7444.trc:
ORA-00600: internal error code, arguments: [kspcsetsp3], [], [], [], [], [], [], []
Mon Mar 14 13:21:27 2011
Errors in file d:\oracle10g\product\10.2.0\admin\ndb\bdump\ndb_mmon_7444.trc:
ORA-00600: internal error code, arguments: [kmgs_parameter_update_timeout_1], [600], [], [], [], [], [], []
ORA-00600: internal error code, arguments: [kspcsetsp3], [], [], [], [], [], [], []
Mon Mar 14 13:22:26 2011
Restarting dead background process MMON
MMON started with pid=11, OS id=7304
Mon Mar 14 13:44:51 2011
Thread 1 advanced to log sequence 77934
Current log# 3 seq# 77934 mem# 0: D:\ORACLE10G\PRODUCT\10.2.0\ORADATA\NDB\REDO0_03.LOG
Mon Mar 14 13:51:20 2011
Thread 1 advanced to log sequence 77935
Current log# 2 seq# 77935 mem# 0: D:\ORACLE10G\PRODUCT\10.2.0\ORADATA\NDB\REDO0_02.LOG
kindly help me out in this, as this is PRODUCTION database.
Regards,Please see the parameter values extracted from the alert log:
Adjusting the default value of parameter parallel_max_servers
from 160 to 135 due to the value of parameter processes (150)
Mon Mar 14 12:18:53 2011
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Picked latch-free SCN scheme 2
Using LOG_ARCHIVE_DEST_10 parameter default value as USE_DB_RECOVERY_FILE_DEST
Autotune of undo retention is turned on.
IMODE=BR
ILAT =18
LICENSE_MAX_USERS = 0
SYS auditing is disabled
ksdpec: called for event 13740 prior to event group initialization
Starting up ORACLE RDBMS Version: 10.2.0.1.0.
System parameters with non-default values:
processes = 150
sga_max_size = 1577058304
__shared_pool_size = 125829120
__large_pool_size = 8388608
__java_pool_size = 8388608
__streams_pool_size = 0
sga_target = 1258291200
control_files = D:\ORACLE10G\PRODUCT\10.2.0\ORADATA\NDB\CONTROL01.CTL, D:\ORACLE10G\PRODUCT\10.2.0\ORADATA\NDB\CONTROL02.CTL, D:\ORACLE10G\PRODUCT\10.2.0\ORADATA\NDB\CONTROL03.CTL
db_block_size = 8192
__db_cache_size = 1107296256
compatible = 10.2.0.1.0
db_files = 600
db_file_multiblock_read_count= 16
db_recovery_file_dest = d:\oracle10g\product\10.2.0/flash_recovery_area
db_recovery_file_dest_size= 2147483648
undo_management = AUTO
undo_tablespace = UNDOTBS2
kgllarge_heap_warning_threshold= 8388608
remote_login_passwordfile= EXCLUSIVE
db_domain =
dispatchers = (PROTOCOL=TCP) (SERVICE=ndbXDB)
job_queue_processes = 10
audit_file_dest = D:\ORACLE10G\PRODUCT\10.2.0\ADMIN\NDB\ADUMP
background_dump_dest = D:\ORACLE10G\PRODUCT\10.2.0\ADMIN\NDB\BDUMP
user_dump_dest = D:\ORACLE10G\PRODUCT\10.2.0\ADMIN\NDB\UDUMP
core_dump_dest = D:\ORACLE10G\PRODUCT\10.2.0\ADMIN\NDB\CDUMP
db_name = ndb
open_cursors = 300
pga_aggregate_target = 838860800
Regards,
Edited by: user12194837 on Mar 14, 2011 3:55 AM -
Hi,
We are using Oracle Enterprise 11.2.0.3 and the dba is reporting memory warnings in the alert log on continual nightly basis over last week.
No difference in volume of data being processed or programs so not sure why this is the case - aplogioes don't have details of error to hand.
We run many processees in parallel - database set for auto-parallelism (PARALLEL_DEGREE_POLICY=AUTO) and 3rd party reporting tool relies on this for spped of reports aganist partitoned tables.
Our data loads complete fine despite these messages.
Dba has asked if we can reduce what being done during these times or reduce the number of proceses
Are there any database parameters which can be set to manage memory such that database doesn't exhaust available memory in this way.
We want the database to manage the workload automatically ( would hope via parameter tuning in partciluar of the parameters related to parallel query this would be possible).
Thanksuser5716448 wrote:
Hi,
Aplogies for delya.
Here is the message from alert log
ORA-04031: unable to allocate 512024 bytes of shared memory ("large pool","unknown object","large pool","PX msg pool")
And this is repeated many times in the log.
On IBM Power Series 7 hardware AIX operating system.
Oracle version 11.2.0.3
Any ideas to allow database to manage memory more effectively when many paralllel queries runing - tuning of parallel-related parameters - which ones?
Thanksresults when reasoning is as follows
Parallel must be faster than no parallel
higher degree of parallel must be faster than lower value.
if/when you reduce parallel activities, then this error no longer occurs. -
Memory Notification:Library Cache Object loaded in Heap size 2262K exceeds
Dear all
I am facing the following problem. I am using Oracle 10gR2 on Windows.
Please help me.
Memory Notification: Library Cache Object loaded into SGA
Heap size 2262K exceeds notification threshold (2048K)
KGL object name :XDB.XDbD/PLZ01TcHgNAgAIIegtw==
ThanksThis is a normal warning message displayed for release 10.2.0.1.0, this is just a bug that by default has declared the kgllarge_heap_warning_threshold instance parameter to 8388608 . The bug is harmless, but the problem is that you will see a lot of messages displayed on the alert.log file, which renders this file difficult to read and it is uncomfortable to spot the real errors.
Just declare a higher value for the kgllarge_heap_warning_threshold undocumented instance parameter. This is meant to be corrected at 10.2.0.2.0, but you can manually have this parameter increased to a value higher than the highest value reported.
For further references take a look at this metalink note:
Memory Notification: Library Cache Object Loaded Into Sga
Doc ID: Note:330239.1
~ Madrid
http://hrivera99.blogspot.com/ -
Workflow notification id log file location
Hi All,
where can i find workflow notification id (NID) log files. for notification id(NID) MAIL_status=FAILED in wf_notifications table.
As clinet asking like "why are PO Notification emails are not going out on Production"What is the application release?
You can find the Workflow log file FNDCPGSC*.txt under $APPLCSF/$APPLOG directory.
Please see these docs.
How To Troubleshoot Java-based Workflow Notification Mailer [ID 242941.1]
How To Troubleshoot When Email Notification Responses Are Processed But The Approval Workflow Still Shows In Process [ID 458665.1]
Troubleshooting Inbound Email Notifications [ID 1184846.1]
Unable to Connect to Mail Store in Workflow Notification Mailer Logs [ID 741352.1]
You may also run the diagnostics script and see if you get more details about the error.
11i : Oracle Workflow Cartridge Workflow Java Mailer Setup Test [ID 274764.1]
Oracle Workflow Release 12 Diagnostics [ID 469822.1]
Thanks,
Hussein -
Memory Notification: Library Cache Object loaded into SGA
Dear Gurus
I am noticing the following error into my database. database version is Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi host sun solaris
Memory Notification: Library Cache Object loaded into SGA
Heap size 2905K exceeds notification threshold (2048K)
Details in trace file /orafs/app/oracle/admin/pblsw/bdump/pblsw_dw01_14545.trc
KGL object name :SELECT /*+rule*/ SYS_XMLGEN(VALUE(KU$), XMLFORMAT.createFormat2('VIEW_T', '7')), KU$.OBJ_NUM ,KU$.SCHEMA_OBJ.NAME ,KU$.SCHEMA_OBJ.NAME ,'VIEW' ,KU$.SCHEMA_OBJ.OWNER_NAME FROM SYS.KU$_VIEW_VIEW KU$ WHERE KU$.OBJ_NUM IN (SELECT * FROM TABLE(DBMS_METADATA.FETCH_OBJNUMS(200001)))
Regards
Rabirefer
Memory Notification: Library Cache Object Loaded Into Sga (Doc ID 330239.1)
http://support.oracle.com -
How to figure out the size of an object - java out of heap memory error
Hi all,
I am using an object that I found in a library that I didn't create so I don't know its internal state or members.
I created a single one of these objects and I call announce() on this object which just sends a UDP announcement over the channel to notify listeners. However, after a message #124,288 I get a java out of heap memory error.
I am wondering if this announce() method is causing the state of the object to grow with every call...it seems unlikely but I want to check to see if it's reserving a growing amount of heap memory without ever allowing it to free.
My question is how can I check how big the object is within my program? I'd like to check, for instance, at every 10,000 messages sent how much memory the object is taking up. Is there a method call for that? Would I have to use some kind of debugger or memory monitor? I would like something easy to use.
Please let me know, and thanks in advance.
Julianjboolean23 wrote:
Thanks for the quick reply.
I say it's unlikely that the methods I call are filling up heap memory because I have one Message object. This one Message has a myMsg String member. Whenever I want to change the message I call myMsg = "anewstringhere". And then I do myMessageObject.announce(); And for that reason i say I only have one Message object. The only thing added to the heap would be the strings that I replace myMsg with. The old references to myMsg are no longer valid and should be garbage collected..
Unless of course if you are calling intern() on them.
so here's my train of thought (and this isn't what my actual code looks like):
myMessageObject.myMsg = "hello" //creates a string on the heap? I assume this is equivalent to saying myMsg = new String("hello")No they are not the same.
The text literal will be in the intern space. Both code fragments would do that.
The second example would create a second instance of String(). That second instance would be cleaned when no longer referenced. But the literal will not.
Is my thought process correct? You are calling a third party library right so mock it (write a simple replacement that does the minimal correct functionality.) Substitute it in your code. And then run. If it still fails then the problem is in your code. If not then it is either in the library or the way that you use the library. -
Hi all,
We have oracle 10g RAC on IBM AIX.
Recently checking Alert log i found out this notification
Wed Oct 21 09:13:34 2009
Memory Notification: Library Cache Object loaded into SGA
Heap size 3722K exceeds notification threshold (2048K)
KGL object name :XDB.XDbD/PLZ01TcHgNAgAIIegtw==
Wed Oct 21 09:13:37 2009
Memory Notification: Library Cache Object loaded into SGA
Heap size 4072K exceeds notification threshold (2048K)
Details in trace file /Oracle/admin/KKMS/udump/kkms1_ora_786660.trc
KGL object name :XDB.XD/HngR5i2kv7gM4IjoliS/g==
Wed Oct 21 09:13:55 2009
Memory Notification: Library Cache Object loaded into SGA
Heap size 3103K exceeds notification threshold (2048K)
Details in trace file /Oracle/admin/KKMS/udump/kkms1_ora_786660.trc
KGL object name :SELECT TOWNER, TNAME, NAME, LENGTH, PRECISION, SCALE, TYPE, ISN
ULL, CONNAME, COLID, INTCOLID, SEGCOLID, COMMENT$, DEFAULT$, DFLTLEN
, ENABLED, DEFER, FLAGS, COLPROP, ADTNAME, ADTOWNER, CHARSETID,
CHARSETFORM, FSPRECISION, LFPRECISION, CHARLEN, TFLAGS, TYPESYN,
100 FROM SYS.EXU9COO WHERE TOBJID = :1 ORDER BY INTCOLID
Wed Oct 21 09:30:09 2009
Thread 1 advanced to log sequence 667
Current log# 2 seq# 667 mem# 0: +DG_DB_ASM/kkms/onlinelog/group_2.262.67594681
Does above notification means something bad coming up?
What steps will help me to overcome above notification
Thanks,
NeeravProbably nothing to worry about
Do you set SGA_TARGET as init parameter. When you set SGA_TARGET parameter the db_cache and shared_poll memory balanced as per memory requirement. The mentioned notification is generated for the same process.
You can over come this notification by setting db_cache and library_cache size and by removing SGA_TARGET parameter. Or you can supress this message by setting kgl_large_heap_warning_threshold init parameter to some high values.
SQL> alter system set "_kgl_large_heap_warning_threshold"=8388608 scope=spfile ;
SQL> shutdown immediate SQL> startup -
Confusion on Java heap memory and WLS_FORMS
Hello all,
Background first:
Oracle Forms/Reports 11.1.2 64-bit
WebLogic Server 10.3.6
JDK 1.6 update 37 64-bit
Microsoft Windows 2008 R2
Using nodemanager to start/stop managed servers
After having read all of the documentation and searched both this forum and the Internet for advice, I'm still utterly confused about the best way to make use of memory on the server (the server I'm working on now has 8GB). The two trains of thought that I have discovered in my search:
1). Don't change the Javaheap size at all (stick with the defaults) and just create additional managed servers on the same machine.
2). Increase the Java heap size for WLS_FORMS
Having said that, here are my questions:
A). What is the best-practices approach (#1 or #2)?
B). If it's #2, what's the approved way to increase the heap size? I have tried adding -Xms and -Xmx arguments to the WLS server start arguments in the WLS console. These are applied when the managed server is started (confirmed in the log file), but because of the way WLS_FORMS is started, there are more -Xms and -Xmx arguments applied after mine, and Java picks the last one mentioned if there are duplicates.
First update: Question #2 seems to be answered by support note 1260074.1 (the one place I hadn't yet looked)
Thanks for any insight you can provide. If there's a document I've missed somewhere, I'm happy to be told where it is and will read and summarize findings here.
Regards,
JohnJohn,
Let me try to comment on each of yours:
1). We had been getting some "Apache unable to contact the forms server" type errors (the users were seeing the "Failure of server APACHE bridge" error). The log files showed nothing of interest. I increased the memory allocated using setDomainEnv.cmd, and the error seems to have gone away. Yes, I know that it was a shotgun approach, trying something without really having a reason to do so, but it seems to have helped Edit: Now that I review the OHS logs instead of the WLS_FORMS logs, I have found log messages, which leads me to Doc 1380762.1, which tells me I need a patch. DOH. And, oh crikey, Forms 11.1.2.1 is out, it came out shortly after we downloaded 11.1.2.0 to create these environments. Good news/bad news kind of thing... <blockquote>The Apache Bridge error is fairly straight forward if you understand what it is telling you. It is an error generated by mod_wl_ohs who is owned by OHS (Apache). This module is responsible for the connection between OHS and WLS. The Apache Bridge error means that OHS (mod_wls) was unable to get a response from the WLS managed server it was calling. Basically it was unable to cross the bridge ;) The cause could be anything from the managed server is not running, to the managed server is over tasked, or there is a network configuration issue and the managed server simply didn't hear OHS calling.
This is all discussed in MOS note 1304095.1
As for 11.1.2.1, this can be installed fresh or as a patch over 11.1.2.0. So for machines that don't currently have anything installed, you can go directly to 11.1.2.1 without having to install 11.1.2.0 first.</blockquote>
2). As tony.g suggested, we are looking for what we should do to solve the "I have n servers with x GB of RAM, what should I do to the out-of-the-box configuration of Forms for stability" question. <blockquote>As I mentioned, there really are no "Forms" specific tweaks related to how much RAM your machine has. The only exception to this is (although somewhat indirect) to use JVM Pooling. JVM Pooling can reduce the size of each runtime process's memory footprint by moving its java calls to the jvm pool then sharing common requests with other running runtimes. Memory usage by OHS or the WLS managed server really has little to do directly with Forms. Specifically to the managed server, from a Forms point of view, I would not expect the memory cost of WLS_FORMS to increase much because of load. I expect it to increase as concurrent load increases, but I would not expect it to be significant. If I had to guess, seeing an increase of 1m or less per user would not surprise me (this is just a guess - I don't know what the expected values would be). If we were to use our (Oracle) older scalability guidelines, typically we would have suggested that you should consider about 100 sessions per 1 jvm for best performance. Given that v11 uses a newer java version and scalability is better today, I suspect you can easily scale to a few hundred (e.g. 300) or so before performance drops off. Beyond that, the need to add more managed servers would likely be necessary.
This is discussed in MOS note 989118.1</blockquote>
3). HA is important to us, so we are implementing a cluster of Forms/Reports servers with an LBR in front of it. I have read in the docs on clustering, cloning a managed server, and via Support, how to increase the heap memory for the WLS_FORMS server. My thought process was "if Oracle gives me instructions on how to increase heap memory and how to clone managed servers, there must be a scenario in which doing so provides benefit." I'm trying to understand the scenarios in which we would do either of those activities. <blockquote>Refer to the note I mentioned above. Generally, if you limit the number of concurrent sessions to less than around 300-400, I would think the default settings should be fine. If you think you would like to go beyond 300 or 400 per managed server then likely you will need to increase the max heap for the managed server. Again, refer to the note I mentioned previously.
Also see MOS note 1260074.1</blockquote>
I am aware of the JVM pooling (yes we do call out to Reports) - I've yet to implement this, but it's on my to-do list.
<blockquote>This is discussed in the [url http://docs.oracle.com/cd/E38115_01/doc.111210/e24477/jvm.htm]Forms Deployment Guide</blockquote>
Hope that helps ;)
. -
Find heap memory Size for Web Intelligence processing server in BO 4.0
Hi All ,
We need to gather data for sizing inputs.For Adaptive processing server , we can find same by going in CMC> Server > APS > Properties & check value for the parameter -Xmx . Could you please tell how to find the max heap memory allocated for a Web Intelligence processing server in BO 4.0 as for Webi server this parameter is not maintained. ?
Regards ,
AbhinavHi Abhinav,
The maximum threshold is a value which may reach on peak usage and Webi processing server cannot occupy memory beyond this value at any time.
In your situation 9 Webi Processing servers with 16 GB of RAM on server is not recommended. This is because consider situation with total 16 GB of host RAM.
4 GB should left for OS
Tomcat will need minimum 2 GB for 200 users
So you are left with 10 GB RAM for all BO services
Now 9 Webi Processing servers with 6 GB of Threshhost will not work here
For this configuration you can have 2 Webi Processing servers with default threshold should be running on single host.
Regards,
Hrishikesh -
Threaded inner classes & heap memory exhaustion
(_) how can i maximize my threading without running out of
heap memory?
push it to the limit, but throttle back before an
java.lang.OutOfMemoryError.
(_) within 1 threaded class ThreadClass, i have two threaded inner classes. for each instance of ThreadClass i only
start one instance of each inner class.
and, i start hundreds of ThreadClass, but not until the previously running ThreadClass object exits, so only one should be running at any given time.
so, what about threaded inner classes?
are they good? bad? cause "OutOfMemoryErrors"?
are those inner threads not dying?
what are common causes of:
java.lang.OutOfMemoryError: java heap space?
my program runs for about 5-minutes, then
bails with the memory error.
how can i drill down and see what
is eating-up all my memory?
thanks.A Thread class is not the same as a thread of
execution. Those inner class based threads of
execution are not dying.maybe. but this is the way i test a thread's life:
public void run() {
System.out.println("thread start");
System.out.println("thread dies and release memory");
}for each inner thread, and the outer thread, this approach for
testing thread life reveals that they die.
Why don't you use a thread pool?ok. i will think about how to do this.
>
If not, you need to ensure those inner threads have
exited and completed.what is a 100% sure check to guarantee a thread exits other than
the one i use above?
note:
the outer thread is running on a remote host, and the inner threads
are running locally. here are the details:
public class BB implements Runnable, FinInterface {
public void run() {
// do some work on the remote machine
private void startResultsHandler(OisXoos oisX) {
ResultHandler rh = new ResultHandler(oisX);
rh.start();
public void startDataProxy(OisXoos oisX, String query) {
DataProxy dp = new DataProxy(oisX, query);
dp.start();
public class ResultsHandler extends Thread {
// runs locally; waits for results from servers
public void run() {
ObjectInputStream ois = new ObjectInputStream(oisX.input);
Set result = (Set) ois.readObject();
} // ____ class :: _ ResultsHandler _ :: class ____
public class DataProxy extends Thread {
// runs locally; performs db queries on behalf of servers
public void run() {
ObjectOutputStream oos = new ObjectOutputStream(oisX.output);
while(moreData) {
.... // sql queries
oos.writeObject(data);
StartResultsHandler(oisX);
} // _____ class :: _ DataProxy _ :: class _____
}now, the BB class is not started locally.
the inner threads are started locally to both service data requests
by the BB thread as well as wait for its results.
(_) so, maybe the inner threads cannot exit (but they sure look
like they exit) until their parent BB thread exits.
(_) yet, those inner threads have no knowledge that the BB
thread is running.
externalizing those inner thread classes will put 2-weeks of work
in the dust bin. i want to keep them internal.
thanks.
here this piece of code that controls everything:
while(moreData) {
FinObjects finObj = new BB();
String symb = (String) data_ois.readObject();
OisXoos oisX = RSAdmin.getServer();
oisX.xoos.writeObject(finObj);
finObj.startDataProxy(finObj, oisX, symb);
} -
Can I increase heap memory without specify any class or jar file??
Hi,
I tried to increase my heap memory in this way :
java -Xms256m -Xmx256m
but I got an error ... it's seem that I must specify a class java or a .jar file ...
This is the error :
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A ; separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument
-splash:<imagepath>
show splash screen with specified image
can I increase heap memory without specify any class or jar file??
thxchiara wrote:
Hi,
I tried to increase my heap memory in this way :
java -Xms256m -Xmx256m
but I got an error ... it's seem that I must specify a class java or a .jar file ...
This is the error :
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
can I increase heap memory without specify any class or jar file??The job of java.exe is to execute java bytecode.
What is it supposed to do with your request to use 256m of memory for heap
when you are not giving it a class or a jar to run? -
Roll, extended and heap memory EXTM
hi Dear,
I am getting issue performance issue one new server while the system specs is:
*Processor 2 * x3690 X5, Xeon 8C E7-2820 105W 2.00GHz
Cache 18MB L3
Memory (Installed) 32 GB PC3L-10600 CL9 ECC DDR3 1333MHz
Instance Profile
Parameter Name Parameter value
em/initial_size_MB 12288
ztta/roll_extension 2000683008
abap/swap_reserve 20971520
abap/heaplimit 40894464
abap/heap_area_total 15204352000
abap/heap_area_nondia 0
abap/heap_area_dia 2000683008
rdisp/PG_MAXFS 32768
rdisp/PG_SHM 16384
rdisp/ROLL_MAXFS 32768
rdisp/ROLL_SHM 32768
ztta/roll_area 3000320
ztta/roll_first 1024
rsdb/ntab/sntabsize 9631
rsdb/ntab/irbdsize 19261
rsdb/ntab/ftabsize 96305
rsdb/ntab/entrycount 64167
zcsa/presentation_buffer_area 14640128
rsdb/cua/buffersize 8000
rtbb/buffer_length 90000
zcsa/table_buffer_area 30000000
abap/buffersize 1500000
PHYS_MEMSIZE 18432
login/no_automatic_user_sapstar 1
login/password_history_size 5
login/fails_to_user_lock 5
rsdb/obj/buffersize 40000
rdisp/wp_no_dia 12
rdisp/wp_no_btc 3
rdisp/wp_no_enq 1
rdisp/wp_no_vb 2
rdisp/wp_no_vb2 1
rdisp/wp_no_spo 2
rsdb/obj/max_objects 2500
rdisp/max_wprun_time 2400
would you give me your expert Suggestion with respect to system Specs(Processor_8C and RAM_32gb)
Regards,hi Gaurav,
1) When this dump occurs , ( during specific activity or anytime).
Dump is occurring against specific transaction when users are executing tcode with big selection criteria.
System: PRDSAP_PRD_00 Tune summary
Date + Time of Snapshot: 21.02.2012 09:37:21 Startup: 19.02.2012 22:05:14
Buffer HitRatio % Alloc. KB Freesp. KB % Free Sp. Dir. Size FreeDirEnt % Free Dir Swaps DB Accs
Nametab (NTAB) 0
Table definition 86.81 21,809 64,167 127,586 192,179
Field definition 77.90 101,318 45,098 46.83 64,167 50,613 78.88 109,591 123,279
Short NTAB 98.44 11,636 8,958 93.01 16,041 13,391 83.48 0 2,650
Initial records 0.99 21,266 14,669 76.16 16,041 2,860 17.83 53,460 66,641
0
program 96.73 1,500,000 795,367 57.04 375,000 305,187 81.38 0 209,493
CUA 99.30 8,000 3,129 47.71 4,000 3,754 93.85 0 252
Screen 99.59 14,297 9,503 67.43 2,000 1,731 86.55 0 275
Calendar 100.00 488 366 76.57 200 48 24.00 0 152
OTR 100.00 4,096 3,375 100.00 2,000 2,000 100.00 0
0
Tables 0
Generic Key 99.73 29,297 2,399 8.65 5,000 1,611 32.22 39 14,181
Single record 88.77 90,000 51,599 57.45 500 403 80.60 0 72,187
0
Export/import 92.43 40,000 34,517 88.28 2,500 975 39.00 0
Exp./ Imp. SHM 53.57 4,096 3,203 94.90 2,000 1,999 99.95 0
SAP Memory Curr.Use % CurUse[KB] MaxUse[KB] In Mem[KB] OnDisk[KB] SAPCurCach HitRatio %
Roll area 0.12 325 3,488 262,144 0 IDs 98.77
Page area 0.25 666 94,624 131,072 131,072 Statement 93.00
Extended memory 4.03 675,840 6,881,280 16,773,120 0 0.00
Heap memory 0 1,084,762 0 0 0.00
Call Stati HitRatio % ABAP/4 Req ABAP Fails DBTotCalls AvTime[ms] DBRowsAff.
Select single 99.84 1,755,375 267,018 9,898 0 1,488,357
Select 1.53 1,471,444 0 561,166 0 5,708,457
Insert 0.00 225,271 5,926 58,267 0 4,146,957
Update 0.00 497 25 572 0 507
Parameters of SWAP entries
Efficiency HITRATIO % 87
HITS 1,264,801
REQUESTS 1,456,982
DB access quality % 87
DB access 192,179
DB access saved 1,264,787
Reorgs 0
Size Allocated KB 21,809
Available KB 18,297
Used KB 18,297
Free KB 0
Free KB 0
Directory entries Available 64,167
Used 64,167
Free 0
Swaps Objects swapped 127,586
Frames swapped 0
Resets Total 0
you can check the starting date of above server while there are some users are login on this server for data testing.
would you suggest me the value of above parameters?
Regards,
Regards, -
Can off JVM heap Memory used in the Near-Cache front-tier
I had tried to config a near-Cache used nio-manager(off JVM heap) in the Front-tier.
<near-scheme>
<scheme-name>CohApp-near</scheme-name>
<front-scheme>
<external-scheme>
</external-scheme>
</front-scheme>
<back-scheme>
<distributed-scheme>
<scheme-ref>CohApp-distributed</scheme-ref>
</distributed-scheme>
</back-scheme>
<invalidation-strategy>auto</invalidation-strategy>
<autostart>true</autostart>
</near-scheme>
when start 'com.tangosol.net.DefaultCacheServer' for this config, error as:
Oracle Coherence Version 3.7.1.0 Build 27797
Enterprise Edition: Development mode
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
2014-03-30 16:34:17.518/1.201 Oracle Coherence EE 3.7.1.0 <Error> (thread=main,
member=n/a): Error org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invali
d content was found starting with element 'external-scheme'. One of '{"http://xm
lns.oracle.com/coherence/coherence-cache-config":local-scheme, "http://xmlns.ora
cle.com/coherence/coherence-cache-config":class-scheme}' is expected. - line 92
Exception in thread "main" (Wrapped: Failed to load the factory) (Wrapped: Missi
ng or inaccessible constructor "com.tangosol.net.DefaultConfigurableCacheFactory
(String)"
<configurable-cache-factory-config>
<class-name>com.tangosol.net.DefaultConfigurableCacheFactory</class-name>
<init-params>
<init-param>
<param-type>java.lang.String</param-type>
<param-value>coherence-cache-config.xml</param-value>
</init-param>
</init-params>
</configurable-cache-factory-config>) java.lang.reflect.InvocationTargetExceptio
n
at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)
at com.tangosol.net.ScopedCacheFactoryBuilder.getDefaultFactory(ScopedCa
cheFactoryBuilder.java:311)
at com.tangosol.net.DefaultCacheFactoryBuilder.getSingletonFactory(Defau
ltCacheFactoryBuilder.java:48)
at com.tangosol.net.DefaultCacheFactoryBuilder.getFactory(DefaultCacheFa
ctoryBuilder.java:121)
at com.tangosol.net.ScopedCacheFactoryBuilder.getConfigurableCacheFactor
y(ScopedCacheFactoryBuilder.java:112)
at com.tangosol.net.CacheFactory.getConfigurableCacheFactory(CacheFactor
y.java:126)
at com.tangosol.net.DefaultCacheServer.getDefaultConfigurableCacheFactor
y(DefaultCacheServer.java:364)
at com.tangosol.net.DefaultCacheServer.main(DefaultCacheServer.java:197)
Caused by: (Wrapped: Missing or inaccessible constructor "com.tangosol.net.Defau
ltConfigurableCacheFactory(String)"
<configurable-cache-factory-config>
<class-name>com.tangosol.net.DefaultConfigurableCacheFactory</class-name>
<init-params>
<init-param>
<param-type>java.lang.String</param-type>
<param-value>coherence-cache-config.xml</param-value>
</init-param>
</init-params>
</configurable-cache-factory-config>) java.lang.reflect.InvocationTargetExceptio
n
at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)
at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2652)
at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2536)
at com.tangosol.net.ScopedCacheFactoryBuilder.getDefaultFactory(ScopedCa
cheFactoryBuilder.java:273)
... 6 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.tangosol.util.ClassHelper.newInstance(ClassHelper.java:694)
at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2611)
... 8 more
Caused by: (Wrapped: Failed to load cache configuration: coherence-cache-config.
xml) (Wrapped) java.io.IOException: Exception occurred during schema validation:
cvc-complex-type.2.4.a: Invalid content was found starting with element 'externa
l-scheme'. One of '{"http://xmlns.oracle.com/coherence/coherence-cache-config":l
ocal-scheme, "http://xmlns.oracle.com/coherence/coherence-cache-config":class-sc
heme}' is expected.
at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)
at com.tangosol.run.xml.XmlHelper.loadResourceInternal(XmlHelper.java:34
1)
at com.tangosol.run.xml.XmlHelper.loadFileOrResource(XmlHelper.java:283)
at com.tangosol.net.DefaultConfigurableCacheFactory.loadConfig(DefaultCo
nfigurableCacheFactory.java:439)
at com.tangosol.net.DefaultConfigurableCacheFactory.loadConfig(DefaultCo
nfigurableCacheFactory.java:425)
at com.tangosol.net.DefaultConfigurableCacheFactory.<init>(DefaultConfig
urableCacheFactory.java:155)
... 14 more
Caused by: (Wrapped) java.io.IOException: Exception occurred during schema valid
ation:
cvc-complex-type.2.4.a: Invalid content was found starting with element 'externa
l-scheme'. One of '{"http://xmlns.oracle.com/coherence/coherence-cache-config":l
ocal-scheme, "http://xmlns.oracle.com/coherence/coherence-cache-config":class-sc
heme}' is expected.
at com.tangosol.run.xml.XmlHelper.loadXml(XmlHelper.java:122)
at com.tangosol.run.xml.XmlHelper.loadXml(XmlHelper.java:157)
at com.tangosol.run.xml.XmlHelper.loadResourceInternal(XmlHelper.java:32
2)
... 18 more
Caused by: java.io.IOException: Exception occurred during schema validation:
cvc-complex-type.2.4.a: Invalid content was found starting with element 'externa
l-scheme'. One of '{"http://xmlns.oracle.com/coherence/coherence-cache-config":l
ocal-scheme, "http://xmlns.oracle.com/coherence/coherence-cache-config":class-sc
heme}' is expected.
at com.tangosol.run.xml.SimpleParser.parseXml(SimpleParser.java:212)
at com.tangosol.run.xml.SimpleParser.parseXml(SimpleParser.java:93)
at com.tangosol.run.xml.SimpleParser.parseXml(SimpleParser.java:162)
at com.tangosol.run.xml.SimpleParser.parseXml(SimpleParser.java:115)
at com.tangosol.run.xml.XmlHelper.loadXml(XmlHelper.java:118)
... 20 more
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid conten
t was found starting with element 'external-scheme'. One of '{"http://xmlns.orac
le.com/coherence/coherence-cache-config":local-scheme, "http://xmlns.oracle.com/
coherence/coherence-cache-config":class-scheme}' is expected.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX
ParseException(ErrorHandlerWrapper.java:195)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Err
orHandlerWrapper.java:131)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
XMLErrorReporter.java:384)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
XMLErrorReporter.java:318)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErro
rReporter.reportError(XMLSchemaValidator.java:417)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportS
chemaError(XMLSchemaValidator.java:3182)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleS
tartElement(XMLSchemaValidator.java:1806)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startEl
ement(XMLSchemaValidator.java:705)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scan
StartElement(XMLNSDocumentScannerImpl.java:400)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2756)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(X
MLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next
(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:808)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.jaxp.validation.StreamValidatorHel
per.validate(StreamValidatorHelper.java:144)
at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.vali
date(ValidatorImpl.java:111)
at javax.xml.validation.Validator.validate(Validator.java:127)
at com.tangosol.run.xml.SaxParser.validateXsd(SaxParser.java:236)
at com.tangosol.run.xml.SimpleParser.parseXml(SimpleParser.java:206)
So I think that if can off JVM heap Memory used in the Near-Cache front-tier?
Or can help how to config the off JVM heap Memory used in the Near-Cache front-tier.
Thanks.Only local-scheme and class-scheme can be used in the front-scheme of a near cache.
Maybe you are looking for
-
I really need help with this one. Had alot of music on my old ipod cant figure out how to put it on my new one?
-
Help copying files from iTunes to external hard drive
I have a bunch of music files (about 15,000 of them) that I want to back up to an external hard drive. They are only files of a certain bit rate, so I can't just locate them in a particular folder and copy them; I need to sort them in iTunes and copy
-
File Browse Validation not stopping upload
Hi Guys, I am using Apex 4.0 and need help with the following please: I have a file browse item which uploads a file into the built in WWV_FLOW_FILES. The problem is it uploads even when there is an error and my validation flags up. Is it supposed to
-
Applying Credit or Debit memo to the Invoice in AP
Plz guide me how to apply Credit or Debit memo to an Invoice in Accounts Payables.
-
Java ME Emulator does not start in Netbeans 8
Hello, I am new to Netbean and I am trying to run the Java ME 8 Emulator within Netbeans 8. My project (IMletDemo) runs properly if the emulator is executed outside Netbeans 8. I set ant in debug mode. the output file is the following : Property "pla