I am running an ETL process using cron on a daily basis on my server every 2 hourly. The ETL process populates a reporting database which runs Greenplum. I have noticed that the ETL process normally will get stalled and "Idle in Transactions" usually is the one holding it up. For these kinds of processes, how do I go about investigating what kinds of services it originated from ? I am guessing but I am not really sure, as when I run "sudo /etc/init.d/apache2 graceful" it usually clears the Idle transactions off.
I am running the ETL process on an Ubuntu server using the Sun Java. Would appreciate some debugging techniques or solutions to improve the process.