Fellow monks,
I wrote a big two component application (client-server) which detects some database table differences.
The client holds 2 hashes with the query results.
With these hashes it creates files for the user with the missing and the different rows.
But what happens when it writes the data in the hashes and there is not enougth memory available?
In my experimantal study the process works with a whole cpu and did no further logging.
So I thing it tries (as fast as possible) to allocate memory.
Is it possible to get the size of the memory of a hash/array/variable at runtime, so I can intervene somehow?
In some docu I read that the memory of a process can not be freed while the process is not terminating. So there is no chance to free a hash/array/variable of one application to get more mem for another application. Is this correct?
Best regards,
C-o-C
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.