java - Track performance issue -


i made piece of code takes file, analyze (xml parser), create data in database (jpa/hibernate/postgres) , ftp transfers (apache commons-net). piece of code works :)

my workmate responible forf testing. tells me when tests on thousands of files (for migration purposes), piece of code fast @ beginning progressively slows down.

i added code track time piece of code takes each file. here result ~4500 files :

enter image description here

as can see, takes 250ms/file @ beginning takes 1 min each file. program uses 100% cpu have no memory problem (i have 16go ram)

there 1 hibernate transaction per file (so no transaction accumulation).

do know if there common bug can progressively slow down program or know way drill down?


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -