public class JVM03 { //-Xmx200m -Xms200m -XX:+PrintGCDetails public static class CartInfo{ BigDecimal price = new BigDecimal(0.0); String name = "张三"; int age = 5; Date birthdate = new Date(); public void m(){} } private static ScheduledThreadPoolExecutor executor = new ScheduledThreadPoolExecutor(50,new ThreadPoolExecutor.DiscardOldestPolicy()); public static void main(String[] args) throws InterruptedException { executor.setMaximumPoolSize(50); for(;;){ modelFit(); Thread.sleep(100); } } private static void modelFit() { List<CartInfo> taskList = getAllCartInfo(); for (Car