Changeset 3680


Ignore:
Timestamp:
Aug 17, 2007, 11:26:23 AM (14 years ago)
Author:
Nicklas Nordborg
Message:

Removed explicit call to System.gc().
Better command line parameters for migration.
Removed debug output that gives no info.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/migrate_from_1.2.sh

    r3679 r3680  
    3131
    3232# Execute Migration
    33 java -server -Xmx400M -Xms400M -cp $CP net.sf.basedb.clients.migrate.Migrater $*
     33java -server -Xmx1024M -Xms400M -XX:+UseParallelGC -XX:+UseParallelOldGC -cp $CP net.sf.basedb.clients.migrate.Migrater $*
  • trunk/src/clients/migrate/net/sf/basedb/clients/migrate/RawBioAssayDataTransfer.java

    r3679 r3680  
    228228      while (rs.next())
    229229      {
    230        
    231         rowCount++;
    232230        RawData rd = batcher.newRawData();
    233231        rd.setReporter(reporterT.getReporterById(dc, rs.getInt(2)));
     
    237235        rd.setX(rs.getFloat(6));
    238236        rd.setY(rs.getFloat(7));
    239         log.info(QUICK_TRANSFER ? "QUICK_TRANSFER set - extended propteries will not be transfered" : "transfering extended properties");
    240237        if (!QUICK_TRANSFER)
    241238        {
     
    262259        }
    263260        progress.increase();
    264       }
    265       if (log.isDebugEnabled())
    266       {
    267         log.debug("transfered " + rowCount + " rows of RawData");
     261        rowCount++;
     262      }
     263      if (log.isInfoEnabled())
     264      {
     265        log.info("Transfered " + rowCount + " rows of RawData for raw bioassay" + rawBioAssay.getName());
    268266      }
    269267    }
  • trunk/src/clients/migrate/net/sf/basedb/clients/migrate/Transfer.java

    r3679 r3680  
    126126
    127127  /**
    128   Setup from and to points for this transfer. A setup also does garbage
    129   collection with <code>System.gc()</code>.
     128  Setup from and to points for this transfer.
    130129 
    131130  @param from <code>Connection</code> base 1 connection
     
    158157  private static final long MB = 1024 * 1024;
    159158  /**
    160   Cleans up memory using System.gc()
    161    */
     159    Display free memory.
     160  */
    162161  protected void cleanUpMemory()
    163162  {
     
    165164    try
    166165    {
    167       long before = rt.freeMemory();
    168       System.gc();
    169       long after = rt.freeMemory();
    170       log.info("Free memory before/after gc(): " + (before / MB) + " / " + (after / MB) + " MB");
     166      long free = rt.freeMemory();
     167      log.info("Free memory: " + (free / MB) + " MB");
    171168    }
    172169    catch (Exception e)
Note: See TracChangeset for help on using the changeset viewer.