Can't compile jdk15 on amd64 5.3-STABLE
Michael Reifenberger
mike at Reifenberger.com
Mon Feb 14 01:13:33 PST 2005
On Mon, 14 Feb 2005, Conrad J. Sabatier wrote:
...
> Even after employing the workaround to get the build to complete, and
> installing the port, the bad news is that the resulting JVM is all but
> useless, gobbling up absolutely insane amounts of RAM (no less than one
> gigabyte to run even the most trivial app).
>
Are you shure java uses(allocates) that amount of memory? Or are you
just seeing the size of the whole process?
I can use jboss4 just fine with the following patch:
Index: os_bsd.cpp
===================================================================
RCS file: /home/cvs/javacvs/jdk150/hotspot/src/os/bsd/vm/os_bsd.cpp,v
retrieving revision 1.16
diff -u -r1.16 os_bsd.cpp
--- os_bsd.cpp 16 Jan 2005 10:16:25 -0000 1.16
+++ os_bsd.cpp 9 Feb 2005 08:40:04 -0000
@@ -1898,7 +1898,7 @@
} while ((res == OS_ERR) && (errno == EINTR));
} else {
assert(Thread::current()->is_Java_thread(), "must be java thread");
- INTERRUPTIBLE_NORESTART(nanosleep(&t, &t), res, os::Bsd::clear_interrupted);
+ INTERRUPTIBLE_NORESTART_VM(nanosleep(&t, &t), res, os::Bsd::clear_interrupted);
}
// INTERRUPTIBLE_NORESTART_VM returns res == OS_INTRPT for thread.Interrupt
Top shows:
last pid: 97136; load averages: 0.33, 0.90, 1.00
up 15+23:38:01 10:11:00
119 processes: 1 running, 118 sleeping
CPU states: 2.7% user, 0.0% nice, 1.9% system, 1.6% interrupt, 93.8% idle
Mem: 909M Active, 638M Inact, 135M Wired, 96M Cache, 210M Buf, 53M Free
Swap: 4000M Total, 492K Used, 3999M Free
PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
712 root 96 0 98940K 39132K select 126:25 0.10% 0.10% Xorg
75685 root 96 0 94600K 29948K select 8:31 0.05% 0.05% kdeinit
21405 www 20 0 1823M 358M kserel 89:21 0.00% 0.00% java
75654 root 96 0 99M 26252K select 33:25 0.00% 0.00% kdeinit
96208 root 20 0 213M 106M kserel 23:55 0.00% 0.00% firefox-bin
Bye/2
---
Michael Reifenberger, Business Development Manager SAP-Basis, Plaut Consulting
Comp: Michael.Reifenberger at plaut.de | Priv: Michael at Reifenberger.com
http://www.plaut.de | http://www.Reifenberger.com
More information about the freebsd-amd64
mailing list