There are three another way to check memory on Linux
1:- free -t -m
2: vmstat
3: top
1:- free -t -m
2: vmstat
3: top
import java.io.*;
import java.net.*;
public final class URLFileSize {
public static final void main(String[] args) {
URL url;
URLConnection connection;
int fileSize;
if(args.length != 1) {
System.err.println("Usage: URLFileSize ");
return;
}
try {
url = new URL(args[0]);
connection = url.openConnection();
fileSize = connection.getContentLength();
if(fileSize < 0)
System.err.println("Could not determine file size.");
else
System.out.println(args[0] + "\nSize: " + fileSize);
connection.getInputStream().close();
} catch(IOException e) {
e.printStackTrace();
}
}
}
DELETE FROM table_name
where column_name in (
SELECT column_name
FROM table_name
GROUP BY column_A, column_B, column_C, ...
having COUNT(*)>1);