Note that there are some explanatory texts on larger screens.

plurals
  1. POCommand Line Java execution and killing
    primarykey
    data
    text
    <p>Java: 1.6 OS: Win XP</p> <p>I have been having an issue with a scheduled task i made that kicks off a java program i created. The issue is that the program uses large chucks of data which is causing the program to seize up mid way.</p> <p>I went ahead and split the program up into different sections so they do not have to run all at once but Im unsure how to build my .cmd file for the scheduled task. I need it to run each piece and after each piece, kill java / run garbage collection and then run the next task.</p> <p>Original piece:</p> <pre><code>java -jar CommandLine.jar -f p d pr d dr d e d qp d ea d pa d pb d as d ndp d g d sc d 2&gt; ErrorLog\cmdErrorLog.txt </code></pre> <p>Each piece is represented by p d, or pr d.</p> <p>So would something like this actually stop java? (testing is hard cause im running on live data sets that get effected when ran):</p> <pre><code>java -jar CommandLine.jar -f pr d 2&gt; ErrorLog\cmdErrorLog.txt java -jar CommandLine.jar -f dr d 2&gt; ErrorLog\cmdErrorLog.txt java -jar CommandLine.jar -f e d 2&gt; ErrorLog\cmdErrorLog.txt java -jar CommandLine.jar -f qp d 2&gt; ErrorLog\cmdErrorLog.txt java -jar CommandLine.jar -f ea d 2&gt; ErrorLog\cmdErrorLog.txt java -jar CommandLine.jar -f pa d 2&gt; ErrorLog\cmdErrorLog.txt java -jar CommandLine.jar -f pb d 2&gt; ErrorLog\cmdErrorLog.txt java -jar CommandLine.jar -f as d 2&gt; ErrorLog\cmdErrorLog.txt java -jar CommandLine.jar -f ndp d 2&gt; ErrorLog\cmdErrorLog.txt java -jar CommandLine.jar -f g d 2&gt; ErrorLog\cmdErrorLog.txt java -jar CommandLine.jar -f sc d 2&gt; ErrorLog\cmdErrorLog.txt </code></pre> <p>Or is there a better way to kill java between each piece? I really just need the memory cleared and java restarted.</p> <p>Also Note that I have given Java as much memory as i can on the box it is running off of.</p> <p>Any help would be insight or help would be greatful.</p> <p>Thanks!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload