Hi Monks,
I'm a newbie perl programmer. Sorry for my mistakes and for my English.
I'm developing a degree project to process a lot of data in real time, about 10 database records /sec. The aplication it's in a infinite loop that takes 10 records an process its inserting the results in another table.
I'm usign PostgresSQL 7.1.3 in a RedHat 7.2 (kernel 2.4.9-13enterprise) with DBD::Pg and DBI. My perl version is "v5.6.0 built for i386-linux". Another CPAN modules I'm usign are: Proc::Daemon, Data::Dumper (Only for debugging an loging purposes), GSM::SMS (Application core, with own modifications).
Monitorizing the app I can see that it eats a lot of memory, about 200MB (TOP INFO: SIZE 224M RSS 224M SHARE 1928 )after 30 min. and more. After reading some docs about perl and system malloc I'm a bit confusing, what it's better? now I have perl -V:d_mymalloc = undef.
Any Idea ?, In a production state I need about 5 app instance running in the same machine and then memory consumption would be a hard handicap.
Thanks
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.