![]() ![]() The Oracle DB runs on CentOS 6.3, it is the free (as-in-beer) available 'standard. This works - programs work as expected - but this procedure is quite slow. emctl stop dbconsole lsnrctl stop sqlplus /nolog <<EOF connect / as sysdba shutdown quit EOF. Substrate VM is a framework that allows ahead-of-time (AOT) compilation of Java applications under closed-world assumption into executable images or shared objects (ELF-64 or 64-bit Mach-O). sqlplus /nolog <<EOF connect / as sysdba startup quit EOF lsnrctl start emctl start dbconsole. Not in the blog post but demonstrated during the talk he gave a few days ago. Where CDS does some parts of classloading of core classes in advance, AOT actually compiles bytecode to native code (an ELF-format shared-object file) in advance, and can be applied to any bytecode. and then use it with java -Xshare:on HelloJava You can create the dump manually by running ⇒ java -Xshare:dumpĪllocated shared space: 50577408 bytes at 0x0000000800000000 The startup time is reduced thus saving the cost because restoring the shared archive is faster than loading the classes. When the JVM starts, the shared archive is memory-mapped to allow sharing of read-only JVM metadata for these classes among multiple JVM processes. If Automatic archival ist enabled, and you don't need online backups, disable it with alter database noarchivelog the database needs to be in nomount state to do it. This prevents that archive logs are written. It's the easiest and oldest (since 1.5 I believe) trick in the book (and not very well-known). If your database is in archive log mode and you don't need it, disable it. Class Data Sharing ( CDS)ĬDS caches the deterministic (hardware dependant) startup process of the JDK. The core idea is that you cache the JVM's initialization cycle instead of executing it on every startup. Matthew works on the Fn Project so he's very interested in figuring out how to keep startup times low.Īpparently there are a few ways to do it, and some are pretty easy as well. I won't include timing examples partly to keep this short and partly to induce you to visit his page. Any code examples below come straight from there. I refer you to Matthew Gilliard's (mjg) blog post on the topic.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |