Subject | Re: Firebird 1.5.1 sucking all memory |
---|---|
Author | jssahdra |
Post date | 2004-10-09T09:58:24Z |
--- In firebird-support@yahoogroups.com, "Alan McDonald" <alan@m...>
wrote:
It is a bandwidth manager (internet gateway) software which controls
QoS policies. It is connected to a big-big LAN (250 or even more PCs).
All are trying to connect to the internet. When the application
starts, it will capture the packets (pcap) and try to authenticate
(based on IP, MAC, VLAN etc.). If there is not session open for a
ip/mac, it will start a new thread for authentication. This
authentication is done against firebird DB. Once authenticated, his
session starts, which is updated to the db every five minutes. Only
the authentication requests are multi-threaded, thread is terminated
on authentication. There are no dead threads etc. Updates are done by
a single thread one by one.
Then it becomes a routine, somebody logs in, somebody logs out (idle
time out etc.)
Firebird handles the initial load (25-30 threads, thread pool)
without any problem.
On each request (authentication, update, close) I call a function,
which attach to the database, starts a transaction, updates, commits
the transaction and then detaches from the database. Error checking
is done for deadlock and any other errors. Transaction is rolled back
on a failure.
JS
wrote:
> > Sorry I think I put it in a wrong way. It is 250 update queriesfrom
> > the same PC. This application manages the subscribers connected tosubscribers
> > the internet. So after every five minutes, it updates the database
> > with the current counters. Approximately, there are 250
> > online at a time. For each subscriber, it will connect to thehandsomely. One
> > database, execute query and disconnect. So the connections are not
> > simultaneous. When I restart the firebird, it uses only a few MBs,
> > with all 250 updadtes happening everying 5 minutes. But then it
> > continously keeps increasing.
> >
> > I tried using my own connection pooling, but then disabled it
> > thinking that it might be the cuase of memory use.
> >
> > Have you any experience with the Classis Server ??
> >
> > This server has a 1 GB of RAM, and machine is 90% idle most of the
> > time.
> >
> > JS
>
> OK - so from this description, superserver should handle it
> connection, 250 updates every 5 minutes.. piece of cake for FB.separate
> There must be some else happening..
> you say multi threaded application. Are making sure you use a
> connection for each thread?how many
> You're kinda contradicting things here now... how many threads - so
> connections?Ok, I will give you the complete overview.
> Alan
It is a bandwidth manager (internet gateway) software which controls
QoS policies. It is connected to a big-big LAN (250 or even more PCs).
All are trying to connect to the internet. When the application
starts, it will capture the packets (pcap) and try to authenticate
(based on IP, MAC, VLAN etc.). If there is not session open for a
ip/mac, it will start a new thread for authentication. This
authentication is done against firebird DB. Once authenticated, his
session starts, which is updated to the db every five minutes. Only
the authentication requests are multi-threaded, thread is terminated
on authentication. There are no dead threads etc. Updates are done by
a single thread one by one.
Then it becomes a routine, somebody logs in, somebody logs out (idle
time out etc.)
Firebird handles the initial load (25-30 threads, thread pool)
without any problem.
On each request (authentication, update, close) I call a function,
which attach to the database, starts a transaction, updates, commits
the transaction and then detaches from the database. Error checking
is done for deadlock and any other errors. Transaction is rolled back
on a failure.
JS