摘要:
public class MyTest { public static void main(String[] args) { URL url = null; List classLoaderList = new ArrayList(); try { url = new File(“/tmp”).to 阅读全文
摘要:
1.针对内存占用问题,可以通过压缩容器中的元素的方法来减少大对象的内存消耗,比如,如果元素全是10进制的数字,可以考虑把它压缩成36进制或64进制。 2.批量删除 while (1) { //每次只做1000条 mysql_query(“DELETE FROM logs WHERE log_date 阅读全文