Skip to main content

Kenyth Zeng's Library tagged jvm   View Popular

08 Dec 09

BTrace实现原理的初步分析 - 企业应用 - Java - JavaEye论坛

  • 动态地为一个已经启动的java附加一个agent上去.
  • import com.sun.btrace.annotations.*;
    import static com.sun.btrace.BTraceUtils.*;

    @BTrace
    public class HelloWorld {
    @OnMethod(
    clazz="java.lang.Thread",
    method="start"
    )

    public static void func() {
    println("about to start a thread!");
    }
    }

    @OnMethod告诉Btrace解析引擎需要代理的类和方法。
    这个例子的作用是当java.lang.Thread类的任意一个对象调用 start 方法后,会调用 func 方法。

  • 1 more annotations...
06 Nov 09

interface injection in the VM - John Rose @ Sun

  • when I hear customers ask for an API to edit classes in the JVM, I always reach for an alternative, a prescription subtitute for the illegal substance.
  • Not only do you have to load the new code, you have to undo the relevant effects of the old code, and there is always the temptation to “diff” the old and new versions, so as to avoid undoing and redoing everything. But diff-patching something that complex leads you down a long path of painful bugs.
  • 2 more annotations...

Class Loading in Java: Time to Add Dynamicity? | Javalobby

  • But not everything can be reloaded by JavaRebel: No reloads with class hierarchy change are possible.
  • 8 more annotations...

How JavaRebel Saves Development Time | Javalobby

  • When debugging through my code in Eclipse, it’s nice to make a change and see that reflected in the running instance straight away with HotSwap.
  • I’ve often wondered why this is the case with Java when dynamic languages and .NET can handle this quickly. 

  • 8 more annotations...

JRebel FAQ | ZeroTurnaround.com

  • without having to restart the
    container or redeploy the application.
  • It does not create any new class loaders,
    instead, it
    extends the existing ones with the ability to manage reloaded classes.
  • 3 more annotations...
02 Nov 09

The Programming Delusion: I am Visible but am I Accessible?

The difficult part is to define the module boundary so the VM can enforce access and this is still an area of ongoing discussion in the JSR 294 EG. Related to this is also the desire to
have Java compilers begin to understand module boundaries with respect to visibility and also the new module accessibility keyword.

blog.bjhargrave.com/...sible-but-am-i-accessible.html - Preview

java type jvm programming language OSGi modularization starred blog JSR 294

  • the distinction between visibility and accessibility in Java.
  • Visibility is whether one type can see another type. In the JLS, this is discussed as observability. In the JVMS, this is about class loading. Basically, this can be described as whether type T is visible to type S. At compile time, this means that the compiler can locate type T when compiling type S. At runtime, this means that the class loader for type S can load (either directly or through delegation) type T. A type can also be visible through reflection. Even if the class loader of type S cannot load type T, type S may come across type T while reflecting. For example, an object may be of type T even though type S directly refers to it via an interface type I.
  • 4 more annotations...

>: Type Checking - Java, Fast !

  • Prior to 5, Every Subtype has cached with its SuperType(casting of which is correct).
  • It try to understand lot of code at compile time only. It put the entire code inline and there is no requirement of VM calls.
  • 1 more annotations...
12 Oct 09

swarm-dpl - Project Hosting on Google Code

a framework serves as a true distributed programming language.

code.google.com/swarm-dpl - Preview

distributed p2p opensource innovation starred Scala jvm scalability framework ideas

  • Watch a video introducing Swarm (36 minutes):
22 Sep 09

Scala Distribution | The Scala Programming Language

  • scala-tool-support(1,2) Tool support files for various text editors like emacs, vim or gedit
17 Sep 09

noop - Project Hosting on Google Code

24 Aug 09

MemoryMXBean (Java Platform SE 6)

  • reclaimed by an automatic memory management
    system which is known as a garbage collector.
  • The method area belongs to non-heap memory. It stores per-class structures
    such as a runtime constant pool, field and method data, and the code for
    methods and constructors. It is created at the Java virtual machine
    start-up.
  • 2 more annotations...
12 Aug 09

VM Spec Threads and Locks

  • Because it is impossible
    for one thread to access parameters or local variables of another thread, it does
    not matter whether parameters and local variables are thought of as residing in the
    shared main memory or in the working memory of the thread that owns them.
  • Every thread has a working memory in which it keeps its own working copy of variables that it must use or assign. As the thread executes a program, it operates on these working copies. The main memory contains the master copy of every variable. There are rules about when a thread is permitted or required to transfer the contents of its working copy of a variable into the master copy or vice versa.
  • 4 more annotations...
18 Jun 09

Liweb 0.1.0 - Demo

    • Executes JVM bytecode:
      • only the compiled version of the program is required, the source code is not
      • thoretically it can run any software written in
        any programming language
        which is compiled to JVM bytecode (of course with some important limitations);
        some of such popular languages are
        Groovy and Ruby
09 May 09

Monitoring and Management Using JMX Technology - Java SE Monitoring and Management Guide

  • To enable monitoring and management from remote systems, you must set the following
    system property when you start the Java VM.

    com.sun.management.jmxremote.port=portNum
  • Remote monitoring and management requires security, to ensure that unauthorized persons cannot control
    or monitor your application. Password authentication over the Secure Sockets Layer (SSL) and
    Transport Layer Security (TLS) is enabled by default. You can disable password authentication
    and SSL separately, as described in the next sections.
  • 4 more annotations...

SNMP Monitoring and Management - Java SE Monitoring and Management Guide

  • Objects managed by SNMP are arranged in management information bases (MIBs).
  • To monitor a Java VM with SNMP you must first enable an
    SNMP agent when you start the Java VM. You can enable the SNMP
    agent for either a single-user environment or a multiple-user environment.
23 Apr 09

Mark Reinhold’s Blog

  • Its core has even already been implemented
    within a Java virtual machine, namely that of Apache Harmony.

Java HotSpot VM Options

  • Categories of Java HotSpot VM Options
    • Boolean options are turned on with -XX:+<option> and turned off with -XX:-<option>.
    • Numeric options are set with -XX:<option>=<number>. Numbers can include 'm' or 'M' for megabytes, 'k' or 'K' for kilobytes, and 'g' or 'G' for gigabytes (for example, 32k is the same as 32768).
    • String options are set with -XX:<option>=<string>, are usually used to specify a file, a path, or a list of commands
  • 1 more annotations...
1 - 20 of 38 Next ›
Showing 20 items per page

Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »

Join Diigo