Questions tagged [jsa]

JSA is abbreviated for `Java Shared Archive`. Conceptually it is called as Class Data Sharing.

Overview from Oracle Site

Class data sharing (CDS) is a new feature in J2SE 5.0 intended to reduce the startup time for Java programming language applications, in particular smaller applications, as well as reduce footprint. When the JRE is installed on 32-bit platforms using the Sun provided installer, the installer loads a set of classes from the system jar file into a private internal representation, and dumps that representation to a file, called a "shared archive". Class data sharing is not supported in Microsoft Windows 95/98/ME. If the Sun JRE installer is not being used, this can be done manually, as explained below. During subsequent JVM invocations, the shared archive is memory-mapped in, saving the cost of loading those classes and allowing much of the JVM's metadata for these classes to be shared among multiple JVM processes.

4 questions
35
votes
4 answers

Speed up application start by adding own application classes to classes.jsa

To speed up the startup time of the JVM, the Sun developers decided it is a good idea to precompile the standard runtime classes for a platform during installation of the JVM. These precompiled classes can be found e.g.…
Daniel
  • 27,718
  • 20
  • 89
  • 133
7
votes
1 answer

Is the Java code saved in a Class Data Sharing archive (classes.jsa) compiled natively or is it bytecode?

I'm trying to know whether creating a Class Data Sharing archive (by running java -Xshare:dump) compiles byte code into native code. There is not a lot of documentation about the internals of Class Data Sharing. The page I linked says that java…
Jean-Philippe Pellet
  • 59,296
  • 21
  • 173
  • 234
0
votes
1 answer

Exclude results from query when using populate function

I have a query $result = $conn->query("select * from cabs where po = '$po' and Anew > $filter ORDER BY title limit $cnt,1") that works fine and populates a file base on the $cnt that is populated based on click the next or previous button to go to…
ForgivenIT
  • 169
  • 13
0
votes
2 answers

Classes.jsa file not deleting through C# code

I have a file named "Classes.jsa" in my application. I need to delete this file through C# code. Manually i can delete this file. But not able to delete it through coding. I tried to delete in Admin mode. But showing the error like Access to the…
Kathir Subramaniam
  • 1,195
  • 1
  • 13
  • 27