Skip to content

Commit 70273e9

Browse files
committed
For simplicity and to avoid memory leak when you attach/detach many times, Scalive only supports processes with only the default system class loader
1 parent d6297d9 commit 70273e9

30 files changed

+282
-811
lines changed

README.rst

Lines changed: 19 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,29 @@ http://stackoverflow.com/questions/4279611/how-to-embed-a-video-into-github-read
99
Download
1010
--------
1111

12-
Extract `scalive-1.0.zip <TODO>`_ you will see:
12+
Extract `scalive-1.0.zip <TODO>`_, you will see:
1313

1414
::
1515

1616
scalive/
1717
scalive
1818
scalive.bat
19-
scalive-client-1.0.jar
20-
scalive-agent-1.0.jar
21-
scalive-repl-1.0.jar
22-
2.10.2/
23-
scala-library-2.10.2.jar
24-
scala-compiler-2.10.2.jar
25-
scala-reflect-2.10.2.jar
26-
2.10.3/
27-
scala-library-2.10.3.jar
28-
scala-compiler-2.10.3.jar
29-
scala-reflect-2.10.3.jar
19+
scalive-1.0.jar
20+
21+
scala-library-2.10.2.jar
22+
scala-compiler-2.10.2.jar
23+
scala-reflect-2.10.2.jar
24+
25+
scala-library-2.10.3.jar
26+
scala-compiler-2.10.3.jar
27+
scala-reflect-2.10.3.jar
3028

3129
scala-library, scala-compiler, and scala-reflect of the appropriate version
3230
will be loaded to your running JVM process, if they have not been loaded.
3331

34-
JARs for Scala 2.10.2 and 2.10.3 are preincluded for convenience. If your Scala
32+
For convenience, Scala 2.10.2 and 2.10.3 JARs are preincluded. If your Scala
3533
process is using a different version, you need to manually download the
36-
corresponding JARS and save them as above.
34+
corresponding JARs and save them as above.
3735

3836
Usage
3937
-----
@@ -52,13 +50,6 @@ To connect a Scala REPL console to a process:
5250

5351
scalive <pid>
5452

55-
If there are multiple class loaders in the process, Scalive will list them so
56-
that you can choose. Then you run again:
57-
58-
::
59-
60-
scalive <pid> <class-loader-id>
61-
6253
How it works
6354
------------
6455

@@ -73,27 +64,14 @@ Known issues
7364

7465
1.
7566

76-
Please read:
77-
http://www.scala-lang.org/old/node/8002
78-
79-
The Scala REPL console needs to know the classpath used by the target process so
80-
that it can compile the code you type at the console on the fly. Scalive tries
81-
to get the classpath from the class loader for you.
82-
83-
It's easy when the class loader is of type `URLClassLoader <http://docs.oracle.com/javase/7/docs/api/java/net/URLClassLoader.html>`_
84-
(just call ``getURLs``). But when the class loader is of other type
85-
(like `ClasspathFilter <http://www.scala-sbt.org/release/api/index.html#sbt.classpath.ClasspathFilter>`_
86-
when the process is started by `SBT <http://www.scala-sbt.org/>`_), Scalive must
87-
solve the problem in the "case by case" style.
88-
89-
Currently, Scalive only supports these process types:
90-
91-
* Process with only one class loader (normal standalone JVM process, like
92-
`Play <http://www.playframework.com/>`_ or
93-
`Xitrum <http://ngocdaothanh.github.io/xitrum/>`_).
94-
* Process started by SBT ``run``.
67+
For simplicity and to avoid memory leak when you attach/detach many times,
68+
Scalive only supports processes with only the default system class loader,
69+
without additional class loaders (Ex: normal standalone JVM processes, like
70+
`Play <http://www.playframework.com/>`_ or
71+
`Xitrum <http://ngocdaothanh.github.io/xitrum/>`_ in production mode).
9572

96-
If your process/class loader is not supported, please `create an issue <https://github.com/ngocdaothanh/scalive/issues>`_.
73+
Processes with multiple class loaders like
74+
`SBT <http://www.scala-sbt.org/>`_ are not supported.
9775

9876
2.
9977

agent/build.sbt

Lines changed: 0 additions & 13 deletions
This file was deleted.

agent/src/main/java/net/djpowell/liverepl/discovery/ClassLoaderDiscovery.java

Lines changed: 0 additions & 16 deletions
This file was deleted.

agent/src/main/java/net/djpowell/liverepl/discovery/ClassLoaderInfo.java

Lines changed: 0 additions & 40 deletions
This file was deleted.

agent/src/main/java/net/djpowell/liverepl/discovery/ClassLoaderRegistry.java

Lines changed: 0 additions & 29 deletions
This file was deleted.

agent/src/main/java/net/djpowell/liverepl/discovery/Discovery.java

Lines changed: 0 additions & 62 deletions
This file was deleted.

agent/src/main/java/net/djpowell/liverepl/discovery/Function.java

Lines changed: 0 additions & 7 deletions
This file was deleted.

agent/src/main/java/net/djpowell/liverepl/discovery/LICENSE

Lines changed: 0 additions & 22 deletions
This file was deleted.

agent/src/main/java/net/djpowell/liverepl/discovery/impl/JMXDiscovery.java

Lines changed: 0 additions & 67 deletions
This file was deleted.

agent/src/main/java/net/djpowell/liverepl/discovery/impl/SystemDiscovery.java

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)