JVM runs on FreeBSD with 18Gb memory. creating core file takes about hour, which is very slow, so i need some way to disable it.
If you really mean a core file, and not something specific to java, then you need to use the ulimit command to set the maximum core file size to something small.