dbTalk Databases Forums  

is this a memory leak in Oracle RDB

comp.databases.rdb comp.databases.rdb


Discuss is this a memory leak in Oracle RDB in the comp.databases.rdb forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
GG
 
Posts: n/a

Default is this a memory leak in Oracle RDB - 10-21-2003 , 07:20 AM






Hi All,
We are using Oracle RDB so long in our product . I'm facing a
problem with Oracle RDB . The problem is , am facing a lot of
reduction in Remaining page file quota and increase in process page
count when i do a "SET TRANSACTION " statement with the options like
READ only , WRITE only., WAIT , NOWAIT etc.. . Our application uses
'C' language and the SQL module file . We had also seen in a sample
program which had just the procedure with set transaction statement
and a commit, for that particular database and two other databases
also . We ran a simple monitor along with this to print the remaining
pagefile quota program for this database we found that because of
this single statement in this program there was a reduction of nearly
8000 pagfilcnt . Is this a memory leak problem ? or are we doing any
errors in our program. Kindly can anyone me provide me the guidelines.

Thanks in advance,

Regards,
GG

Reply With Quote
  #2  
Old   
Norman Lastovica
 
Posts: n/a

Default Re: is this a memory leak in Oracle RDB - 10-21-2003 , 08:25 AM






It isn't clear to me what your problem might be. I would
suggest that you get in touch directly with Oracle Rdb
support. You will want to be prepared to provide them
with a reproducable example of your problem.

GG wrote:
Quote:
Hi All,
We are using Oracle RDB so long in our product . I'm facing a
problem with Oracle RDB . The problem is , am facing a lot of
reduction in Remaining page file quota and increase in process page
count when i do a "SET TRANSACTION " statement with the options like
READ only , WRITE only., WAIT , NOWAIT etc.. . Our application uses
'C' language and the SQL module file . We had also seen in a sample
program which had just the procedure with set transaction statement
and a commit, for that particular database and two other databases
also . We ran a simple monitor along with this to print the remaining
pagefile quota program for this database we found that because of
this single statement in this program there was a reduction of nearly
8000 pagfilcnt . Is this a memory leak problem ? or are we doing any
errors in our program. Kindly can anyone me provide me the guidelines.

Thanks in advance,

Regards,
GG

Reply With Quote
  #3  
Old   
Norman Lastovica
 
Posts: n/a

Default Re: is this a memory leak in Oracle RDB - 10-21-2003 , 08:25 AM



are you sure that you're not simply attaching to the database?

GG wrote:
Quote:
Hi All,
We are using Oracle RDB so long in our product . I'm facing a
problem with Oracle RDB . The problem is , am facing a lot of
reduction in Remaining page file quota and increase in process page
count when i do a "SET TRANSACTION " statement with the options like
READ only , WRITE only., WAIT , NOWAIT etc.. . Our application uses
'C' language and the SQL module file . We had also seen in a sample
program which had just the procedure with set transaction statement
and a commit, for that particular database and two other databases
also . We ran a simple monitor along with this to print the remaining
pagefile quota program for this database we found that because of
this single statement in this program there was a reduction of nearly
8000 pagfilcnt . Is this a memory leak problem ? or are we doing any
errors in our program. Kindly can anyone me provide me the guidelines.

Thanks in advance,

Regards,
GG

Reply With Quote
  #4  
Old   
GG
 
Posts: n/a

Default Re: is this a memory leak in Oracle RDB - 10-23-2003 , 03:07 AM



Hi ,

Am sorry for not detailing the problem .

Am using a procedure in the test.sqlmod file called procedure
set_Trans . This procedures just contains a statement as follows.

The test.sqlmod file looks like this :


------------------------------------------------------------------------------
-- Declaration Section
------------------------------------------------------------------------------
DECLARE TEST$DB ALIAS FOR FILENAME 'F$LIBRARY:F$AUDIT_DATABASE'

-------------------------------------------------------------------------------
-- Procedure Section
-------------------------------------------------------------------------------

PROCEDURE SET_TRANS
SQLCA;

SET TRANSACTION READ WRITE RESERVING
TEST$DB.EVENT FOR SHARED WRITE ;

PROCEDURE COMMIT_DATA
SQLCA;

COMMIT;


In the test.c file :


set_trans(&sqlca); --

I just use this statement once. But i print the value of 'pagfilcnt'
before and after this statement . This value reduces by 7700 units .
Is this an expected behaviour or a memory leak.




Norman Lastovica <norman.lastovica (AT) oracle (DOT) com> wrote

Quote:
It isn't clear to me what your problem might be. I would
suggest that you get in touch directly with Oracle Rdb
support. You will want to be prepared to provide them
with a reproducable example of your problem.

GG wrote:

Hi All,
We are using Oracle RDB so long in our product . I'm facing a
problem with Oracle RDB . The problem is , am facing a lot of
reduction in Remaining page file quota and increase in process page
count when i do a "SET TRANSACTION " statement with the options like
READ only , WRITE only., WAIT , NOWAIT etc.. . Our application uses
'C' language and the SQL module file . We had also seen in a sample
program which had just the procedure with set transaction statement
and a commit, for that particular database and two other databases
also . We ran a simple monitor along with this to print the remaining
pagefile quota program for this database we found that because of
this single statement in this program there was a reduction of nearly
8000 pagfilcnt . Is this a memory leak problem ? or are we doing any
errors in our program. Kindly can anyone me provide me the guidelines.

Thanks in advance,

Regards,
GG

Reply With Quote
  #5  
Old   
GG
 
Posts: n/a

Default Re: is this a memory leak in Oracle RDB - 10-23-2003 , 03:12 AM



Hi ,
Am sorry for not detailing the problem .

Am using a procedure in the test.sqlmod file called procedure
set_Trans . This procedures just contains a statement as follows.

The test.sqlmod file looks like this :


------------------------------------------------------------------------------
-- Declaration Section
------------------------------------------------------------------------------
DECLARE TEST$DB ALIAS FOR FILENAME 'F$LIBRARY:F$AUDIT_DATABASE'

-------------------------------------------------------------------------------
-- Procedure Section
-------------------------------------------------------------------------------

PROCEDURE SET_TRANS
SQLCA;

SET TRANSACTION READ WRITE RESERVING
TEST$DB.EVENT FOR SHARED WRITE ;

PROCEDURE COMMIT_DATA
SQLCA;

COMMIT;


In the test.c file :


set_trans(&sqlca); --

I just use this statement once. But i print the value of 'pagfilcnt'
before and after this statement . This value reduces by 7700 units .
Is this an expected behaviour or a memory leak.


Thanks and regards,
GG

Norman Lastovica <norman.lastovica (AT) oracle (DOT) com> wrote

Quote:
It isn't clear to me what your problem might be. I would
suggest that you get in touch directly with Oracle Rdb
support. You will want to be prepared to provide them
with a reproducable example of your problem.

GG wrote:

Hi All,
We are using Oracle RDB so long in our product . I'm facing a
problem with Oracle RDB . The problem is , am facing a lot of
reduction in Remaining page file quota and increase in process page
count when i do a "SET TRANSACTION " statement with the options like
READ only , WRITE only., WAIT , NOWAIT etc.. . Our application uses
'C' language and the SQL module file . We had also seen in a sample
program which had just the procedure with set transaction statement
and a commit, for that particular database and two other databases
also . We ran a simple monitor along with this to print the remaining
pagefile quota program for this database we found that because of
this single statement in this program there was a reduction of nearly
8000 pagfilcnt . Is this a memory leak problem ? or are we doing any
errors in our program. Kindly can anyone me provide me the guidelines.

Thanks in advance,

Regards,
GG

Reply With Quote
  #6  
Old   
Peter Jackson
 
Posts: n/a

Default Re: is this a memory leak in Oracle RDB - 10-30-2003 , 05:34 AM



This looks normal.

The first time you start a transaction against a database the program attaches to the database.
This requires some memory, some global and some local, so pagfilcnt should go down.
7700 pages is less that 4 Mbytes.
It seems reasonable, expecially is you are using local buffers.

The memory is not released to VMS at the end of the transaction.
Partly because the program will remain attached, and partly because Rdb releases the memory to an internal
pool which it will reuse.

Peter
Oracle Rdb Support

GG wrote:

Quote:
Hi ,
Am sorry for not detailing the problem .

Am using a procedure in the test.sqlmod file called procedure
set_Trans . This procedures just contains a statement as follows.

The test.sqlmod file looks like this :

------------------------------------------------------------------------------
-- Declaration Section
------------------------------------------------------------------------------
DECLARE TEST$DB ALIAS FOR FILENAME 'F$LIBRARY:F$AUDIT_DATABASE'

-------------------------------------------------------------------------------
-- Procedure Section
-------------------------------------------------------------------------------

PROCEDURE SET_TRANS
SQLCA;

SET TRANSACTION READ WRITE RESERVING
TEST$DB.EVENT FOR SHARED WRITE ;

PROCEDURE COMMIT_DATA
SQLCA;

COMMIT;

In the test.c file :

set_trans(&sqlca); --

I just use this statement once. But i print the value of 'pagfilcnt'
before and after this statement . This value reduces by 7700 units .
Is this an expected behaviour or a memory leak.

Thanks and regards,
GG

Norman Lastovica <norman.lastovica (AT) oracle (DOT) com> wrote

It isn't clear to me what your problem might be. I would
suggest that you get in touch directly with Oracle Rdb
support. You will want to be prepared to provide them
with a reproducable example of your problem.

GG wrote:

Hi All,
We are using Oracle RDB so long in our product . I'm facing a
problem with Oracle RDB . The problem is , am facing a lot of
reduction in Remaining page file quota and increase in process page
count when i do a "SET TRANSACTION " statement with the options like
READ only , WRITE only., WAIT , NOWAIT etc.. . Our application uses
'C' language and the SQL module file . We had also seen in a sample
program which had just the procedure with set transaction statement
and a commit, for that particular database and two other databases
also . We ran a simple monitor along with this to print the remaining
pagefile quota program for this database we found that because of
this single statement in this program there was a reduction of nearly
8000 pagfilcnt . Is this a memory leak problem ? or are we doing any
errors in our program. Kindly can anyone me provide me the guidelines.

Thanks in advance,

Regards,
GG


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.