|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Root cause of all my problems (fbudf+libfbclient)
Guys, if you remeber me, I have been flooding all the user groups
related to firebird, with my problem related to firebird using huge amount of memory. Now finally I have found the root cause of my problem. It is the udf library 'fbudf', which comes with the firebird distribution. BUT there is nothing wrong with the code as such. I discovered that when any udf library is linked with 'libfbclient', memory is not properly freed up. But then there are some functions in fbudf, which require libfbclient (i.e. call to isc_decode_timestamp, isc_encode_timestamp etc.). So if you don't link fbudf with libfbclient, those functions (addYear) don't respond. Here is what I did for fbudf: 1. Copied the source code related to isc_decode_timestamp, isc_encode_timestamp and related functions into a new C file. 2. Removed the linking of libfbclient. 3. Linked the new C file with 'fbudf'. AND guess what? It is running since saturday without a single byte increase. Moreover I was amazed to see the low footprint of firebird. It is using only 3MB. The above behaviour can be easily reproduced by linking any udf library with libfbclient (even if you don't make any call to the libfbclient). Then see the difference in memory usage, after making good number of calls to any function in that udf library. Guys thanks a lot for your help. Regards: JS |
|
#2
|
|||
|
|||
|
Can you please try Firebird 1.5.2 from http://www.firebirdsql.org/download/prerelease ?
The version script change may actually solve problem with linking UDFs with fbclient. |
|
#3
|
|||
|
|||
|
Quote:
hi JS, my problem is http://forums.devshed.com/t240692/s.html . As you can see this is the same problem. Please give me more details about your procedure to solve the problem. (i.e in point 1: Do you copy the source file directly from firebird source ?, ...) Thanx -- Ciao L. |
![]() |
| Viewing: Dev Shed Forums > Databases > Firebird SQL Development > Root cause of all my problems (fbudf+libfbclient) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|