If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > foreign keys - application heap issue

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-27-04, 08:03
arik.fish arik.fish is offline
Registered User
 
Join Date: Feb 2004
Posts: 4
Exclamation foreign keys - application heap issue

Hello all .
I'm painfully dealing for a week with very strange problem of application heap size overflow.

My system (linux/db2 8.1/512M RAM/1024 pages application heap size)
has few tables, where two of them like folowing:

T1
( id bigint primary key not null
generated by default as identity
( start with 1, increment by 1 ),
val bigint not null
)

T2
( id bigint primary key not null
generated by default as identity
( start with 1, increment by 1 ),
val bigint not null,
CONSTRAINT t1_fk FOREIGN KEY ( val )
REFERENCES T1 ( id )
)

T1 has about 500000 entries.

When i inserting entries to T2 , application heap utilization becomes over 100% , and after few minutes application fails with "application heap size error).
But , what is most important and STRANGE , when i removing constraint of T2,which is FOREIGN KEY to T1 EVERY THING WORK FINE !!!

Is there any way to control application heap (flush)?

Thanks everyone, Arik
Reply With Quote
  #2 (permalink)  
Old 02-27-04, 08:19
disaster disaster is offline
Registered User
 
Join Date: Feb 2004
Posts: 24
Re: foreign keys - application heap issue

Hi,

have you dedined an index on column id in t1 ?
just an idea !

regards

marc

Quote:
Originally posted by arik.fish
Hello all .
I'm painfully dealing for a week with very strange problem of application heap size overflow.

My system (linux/db2 8.1/512M RAM/1024 pages application heap size)
has few tables, where two of them like folowing:

T1
( id bigint primary key not null
generated by default as identity
( start with 1, increment by 1 ),
val bigint not null
)

T2
( id bigint primary key not null
generated by default as identity
( start with 1, increment by 1 ),
val bigint not null,
CONSTRAINT t1_fk FOREIGN KEY ( val )
REFERENCES T1 ( id )
)

T1 has about 500000 entries.

When i inserting entries to T2 , application heap utilization becomes over 100% , and after few minutes application fails with "application heap size error).
But , what is most important and STRANGE , when i removing constraint of T2,which is FOREIGN KEY to T1 EVERY THING WORK FINE !!!

Is there any way to control application heap (flush)?

Thanks everyone, Arik
Reply With Quote
  #3 (permalink)  
Old 02-27-04, 08:20
arik.fish arik.fish is offline
Registered User
 
Join Date: Feb 2004
Posts: 4
Re: foreign keys - application heap issue

Quote:
Originally posted by disaster
Hi,

have you dedined an index on column id in t1 ?
just an idea !

regards

marc
Yeah , and even ran runstats on it
Reply With Quote
  #4 (permalink)  
Old 02-27-04, 08:23
arik.fish arik.fish is offline
Registered User
 
Join Date: Feb 2004
Posts: 4
Re: foreign keys - application heap issue

Quote:
Originally posted by arik.fish
Yeah , and even ran runstats on it
,except, id is primary key which indexed by default
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On