Commit Graph

132 Commits

Author SHA1 Message Date
BoykoAlex
19d680bbb7 PT #160302607: WebFlux RMs JMX beans format + NPE for WebFlux symbols 2018-09-05 19:03:20 -04:00
nsingh
997e9a0383 Added some comments on why return empty model in cache 2018-08-30 12:40:25 +02:00
nsingh
0ffeac4066 return empty model if JMX not available instead of throwing exception 2018-08-30 12:36:07 +02:00
nsingh
f776fae57d Reverting. We don't want to invoke JMX all the time 2018-08-30 12:34:54 +02:00
nsingh
a682269162 PT 160096886 - Don't throw exception when actuator not available
For example, when application is stopping.
2018-08-30 12:26:18 +02:00
Martin Lippert
f66d8352f4 changed proxy creation for local apps to subclass proxies to avoid instanceof errors (like in the tests) 2018-08-23 11:24:27 +02:00
Martin Lippert
bff10fa51a added more advanced caching strategy for calculating live hovers after live hover hints already got created 2018-08-23 09:57:28 +02:00
Kris De Volder
2499d8b542 Small change to log message
Shouldn't call getJmxUrl just to log... it has too
much machinery attached to it to just call it frivoulously
(i.e. this is not just a field, but does a bunch of VM connecting
etc.)
2018-08-21 15:42:54 -07:00
Martin Lippert
ffcee42a0e experimental optimization to avoid calling potentially slow jmx endpoints too often 2018-08-20 17:11:28 +02:00
Kris De Volder
2c6dd39a33 Resource links for remote apps
Fixed by adding a special case that detects the
special path prefix '/home/vcap/app' and treats
resources in that path the same as classpath
resources.
2018-08-17 12:46:18 -07:00
Martin Lippert
4aaaf8bae6 switched to commons-codec for easier and better md5 checksum generation 2018-08-14 18:17:34 +02:00
Martin Lippert
34a1168b75 avoid json object creation and live beans model parsing if raw data is unchanged 2018-08-14 10:41:23 +02:00
Kris De Volder
869c0b2516 Bump version to 0.6.0 2018-08-13 21:13:24 +00:00
BoykoAlex
ddd31e3e2d PT #159690556: Dispose JMX connection (proper fix) 2018-08-10 13:59:02 -04:00
BoykoAlex
4c5e77e682 PT #159690556: Dispose boot app handle if failed to connect to VM
descriptor
2018-08-10 13:26:22 -04:00
Martin Lippert
c953ff93c1 generated lambda types are now being removed from live bean type to improve bean change detection mechanism 2018-08-10 15:40:00 +02:00
Kris De Volder
a42340c593 Fix JMX related resource leak
JMX connections on language server not closed when stopping
the last/only tunneled boot dash app.
2018-08-09 13:58:48 -07:00
Kris De Volder
3b0fb2135a Fix NPE that happens on restart of local apps ...
... and is suspected of causing resource leak by
breaking proper disposal of JMX connectors for local apps.
2018-08-09 11:56:21 -07:00
Kris De Volder
243586a8f8 Fix https://www.pivotaltracker.com/story/show/159426287
Add remote host name to ssh tunnel config, so that it can
be used to compute correct request mapping links for live
hovers.
2018-08-07 10:06:49 -07:00
BoykoAlex
21e0543730 PT #159307292: Anonymous inner class bean type wiring 2018-07-31 00:26:02 -04:00
Kris De Volder
576615c223 Bump version to 0.5.0 2018-07-27 16:39:35 +00:00
BoykoAlex
eb34b0210f PT #159307292: Autowired reports optics, content specific to AST node 2018-07-26 21:25:37 -04:00
Kris De Volder
5a1aab6d2c Bump version to 0.4.0 2018-07-18 16:59:15 +00:00
Kris De Volder
c1c46a3709 RE-using JMXConnectors as much as possible. 2018-07-13 15:20:17 -07:00
Kris De Volder
10a1e32e29 Moving towards more easy to re-use JMXConnector
The "create connector -> do something -> close" pattern
has now been turned into a method. This paves the way
for making management of the connectors smarter
so that, for example, a single connector could be
cached for some time and re-used for more than
one task.

Creating the connector is a slow process especially
for remote apps, so this is a bit of a performance
bottleneck and its a bad idea to create a new
connector for every small request.
2018-07-13 10:00:27 -07:00
Kris De Volder
4b31ac99ee Better caching proxy using CGlib
Allows internal calls to this.getBlah() to also be cached.
2018-07-12 16:06:43 -07:00
Kris De Volder
f29e7e9954 Various cleanups
- missing copytight headers
- unused imports
- obsolete comments
- rename some strnage method names
2018-07-12 14:19:56 -07:00
Kris De Volder
57f42c9883 Make remote boot app urls configurable from vscode 2018-07-12 14:13:47 -07:00
Kris De Volder
d81a6a6763 Merge branch 'master' of github.com:spring-projects/sts4 2018-07-11 17:36:24 -07:00
Kris De Volder
a81a54f391 Partially working remote app live hover
Uses a single-hard-coded jmx url to connect to remote
and fetch actuator data.
2018-07-11 16:49:52 -07:00
Martin Lippert
d7fc10794c first cut for strict project matching mode to ensure live hovers are detected and shown only for relevant projects 2018-07-11 16:40:18 +02:00
Kris De Volder
e1c0953f4f Refactoring: introduce abstract 'SpringBootApp'
In preparation for supporting both local and
remote SpringBootApp as sources for live
information via jmx connection.
2018-07-10 11:34:09 -07:00
Martin Lippert
fc21e145ca update jdt prefs for photon 2018-07-06 13:07:22 +02:00
Martin Lippert
71bebf307a change detection is now able to re-connect to already stopped application 2018-06-19 09:43:30 +02:00
Martin Lippert
e157343daa check for existing model before updating it and fixed typo 2018-06-19 09:43:30 +02:00
Martin Lippert
2353b43fa3 first steps towards detecting changes in live running apps across, at the moment across internal restarts via devtools 2018-06-19 09:43:30 +02:00
Kris De Volder
19890b880a Bump version to 0.3.2 2018-06-18 18:01:42 +00:00
Kris De Volder
171fb272f9 Bump version to 0.3.1 2018-06-11 22:56:05 +00:00
Kris De Volder
3738f649d1 Bump version to 0.3.0 2018-06-04 18:02:37 +00:00
nsingh
3a8fac4ce1 Don't serialise nulls in Gson in SpringBootApps 2018-05-02 05:33:51 -04:00
nsingh
76b35ab76d For efficient way to determine actuator domain from JMX 2018-04-24 15:09:37 +02:00
nsingh
ba58b946f3 Use org.slf4j.Logger 2018-04-24 13:44:32 +02:00
nsingh
e02c7e4a1e Ensure jmx connector is closed after getting domain 2018-04-24 13:36:08 +02:00
nsingh
65667f4264 PT 156072399 - Refactor to support additional JMX MBean domains 2018-04-24 13:31:03 +02:00
nsingh
2a23727bb8 Replace Jackson ObjectMapper with Gson in SpringBootApp 2018-04-24 12:52:12 +02:00
BoykoAlex
d57b4745dd PT #155293325: Adopt Boot 2 mappings bean new JSON data 2018-04-05 19:57:39 -04:00
Kris De Volder
9be6fd9601 Bump version to 0.2.1 2018-03-19 19:08:28 +00:00
Kris De Volder
42772a42dc Bump version to 0.3.0 2018-03-19 18:54:14 +00:00
Kris De Volder
cc2c173091 Bump version to 0.2.0 2018-03-15 15:26:37 +00:00
Kris De Volder
efe8049bba Bump version to 0.1.6 2018-03-09 22:11:06 +00:00