Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-boot-admin
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-boot-admin
Commits
a2ace6f7
Commit
a2ace6f7
authored
Jun 10, 2018
by
Johannes Edmeier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent accidental heap dump download.
Add a page with extra button to trigger a heap dump. closes #734
parent
86e21786
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
85 additions
and
15 deletions
+85
-15
package-lock.json
spring-boot-admin-server-ui/package-lock.json
+7
-7
package.json
spring-boot-admin-server-ui/package.json
+2
-2
index.vue
...i/src/main/frontend/views/instances/auditevents/index.vue
+1
-1
index.vue
...r-ui/src/main/frontend/views/instances/heapdump/index.vue
+60
-0
index.js
...dmin-server-ui/src/main/frontend/views/instances/index.js
+4
-2
index.vue
...er-ui/src/main/frontend/views/instances/logfile/index.vue
+1
-1
index.vue
...er-ui/src/main/frontend/views/instances/metrics/index.vue
+1
-1
index.vue
...rver-ui/src/main/frontend/views/instances/shell/index.vue
+9
-1
No files found.
spring-boot-admin-server-ui/package-lock.json
View file @
a2ace6f7
...
...
@@ -234,9 +234,9 @@
"dev"
:
true
},
"@vue/test-utils"
:
{
"version"
:
"1.0.0-beta.1
6
"
,
"resolved"
:
"https://registry.npmjs.org/@vue/test-utils/-/test-utils-1.0.0-beta.1
6
.tgz"
,
"integrity"
:
"sha
512-TF9ae3zhs8qBN98Bix2Bh3IrwkhscEV3HRthPgtzJPNG0YHUyNTlZNXH36vbP0nuSAs9Om8XjVd8/MDj8ehpEA=
="
,
"version"
:
"1.0.0-beta.1
8
"
,
"resolved"
:
"https://registry.npmjs.org/@vue/test-utils/-/test-utils-1.0.0-beta.1
8
.tgz"
,
"integrity"
:
"sha
1-U8IsS5AhGpjb8nCMC3F8GK2qmTw
="
,
"dev"
:
true
,
"requires"
:
{
"lodash"
:
"^4.17.4"
...
...
@@ -604,13 +604,13 @@
"dev"
:
true
},
"autoprefixer"
:
{
"version"
:
"8.6.
1
"
,
"resolved"
:
"https://registry.npmjs.org/autoprefixer/-/autoprefixer-8.6.
1
.tgz"
,
"integrity"
:
"sha512-
DqvyCbff+kvfrZgoDHIRK28svWSSFE/Y86FXUd9zflJ+aU7rr+6JCSuhNf1evSPzh+42GdI39BuIjixN5W/EPQ
=="
,
"version"
:
"8.6.
2
"
,
"resolved"
:
"https://registry.npmjs.org/autoprefixer/-/autoprefixer-8.6.
2
.tgz"
,
"integrity"
:
"sha512-
cv9v1mYYBcAnZq4MHseJ9AIdjQmNahnpCpPO46oTkQJS2GggsBp2azHjNpAuQ95Epvsg+AIsyjYhfI9YwFxGSA
=="
,
"dev"
:
true
,
"requires"
:
{
"browserslist"
:
"^3.2.8"
,
"caniuse-lite"
:
"^1.0.3000085
0
"
,
"caniuse-lite"
:
"^1.0.3000085
1
"
,
"normalize-range"
:
"^0.1.2"
,
"num2fraction"
:
"^1.2.2"
,
"postcss"
:
"^6.0.22"
,
...
...
spring-boot-admin-server-ui/package.json
View file @
a2ace6f7
...
...
@@ -39,8 +39,8 @@
"yamljs"
:
"^0.3.0"
},
"devDependencies"
:
{
"@vue/test-utils"
:
"^1.0.0-beta.1
6
"
,
"autoprefixer"
:
"^8.6.
1
"
,
"@vue/test-utils"
:
"^1.0.0-beta.1
8
"
,
"autoprefixer"
:
"^8.6.
2
"
,
"babel-core"
:
"^6.26.3"
,
"babel-eslint"
:
"^8.2.3"
,
"babel-jest"
:
"^23.0.1"
,
...
...
spring-boot-admin-server-ui/src/main/frontend/views/instances/auditevents/index.vue
View file @
a2ace6f7
...
...
@@ -28,7 +28,7 @@
</div>
<div
v-if=
"isOldAuditevents"
class=
"message is-warning"
>
<div
class=
"message-body"
>
<p>
Audit Log is not supported for Spring Boot 1.x applications.
</p>
Audit Log is not supported for Spring Boot 1.x applications.
</div>
</div>
<auditevents-list
v-if=
"events"
:instance=
"instance"
:events=
"events"
/>
...
...
spring-boot-admin-server-ui/src/main/frontend/views/instances/heapdump/index.vue
0 → 100644
View file @
a2ace6f7
<!--
- Copyright 2014-2018 the original author or authors.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-->
<
template
>
<section
class=
"section heapdump"
>
<div>
<div
class=
"message is-warning"
>
<div
class=
"message-body"
>
A heap dump may contain
<strong>
sensitive data
</strong>
.
<br>
Please handle with care.
</div>
</div>
<div
class=
"message is-warning"
>
<div
class=
"message-body"
>
Dumping the heap may be expensive in terms of cpu and disk space.
</div>
</div>
<a
class=
"button is-primary"
:href=
"`instances/$
{instance.id}/actuator/heapdump`" target="_blank">
<font-awesome-icon
icon=
"download"
/>
Download Heap Dump
</a>
</div>
</section>
</
template
>
<
script
>
import
Instance
from
'@/services/instance'
;
export
default
{
props
:
{
instance
:
{
type
:
Instance
,
required
:
true
}
}
}
</
script
>
<
style
lang=
"scss"
>
.heapdump
{
display
:
flex
;
justify-content
:
space-around
;
&
>
div
{
display
:
flex
;
flex-direction
:
column
;
}
}
</
style
>
spring-boot-admin-server-ui/src/main/frontend/views/instances/index.js
View file @
a2ace6f7
...
...
@@ -18,6 +18,7 @@ import sbaInstancesAuditevents from './auditevents';
import
sbaInstancesDetails
from
'./details'
;
import
sbaInstancesEnv
from
'./env'
;
import
sbaInstancesFlyway
from
'./flyway'
;
import
sbaInstancesHeapdump
from
'./heapdump'
;
import
sbaInstancesTrace
from
'./httptrace'
;
import
sbaInstancesJolokia
from
'./jolokia'
;
import
sbaInstancesLiquibase
from
'./liquibase'
;
...
...
@@ -54,6 +55,8 @@ export default [{
path
:
'flyway'
,
component
:
sbaInstancesFlyway
,
props
:
true
,
name
:
'instance/flyway'
},
{
path
:
'threaddump'
,
component
:
sbaInstancesThreaddump
,
props
:
true
,
name
:
'instance/threaddump'
},
{
path
:
'heapdump'
,
component
:
sbaInstancesHeapdump
,
props
:
true
,
name
:
'instance/heapdump'
}]
},
{
name
:
'instance/details'
,
...
...
@@ -106,8 +109,7 @@ export default [{
isActive
:
({
instance
})
=>
instance
.
hasEndpoint
(
'sessions'
)
},
{
name
:
'instance/heapdump'
,
href
:
params
=>
`instances/
${
params
.
instanceId
}
/actuator/heapdump`
,
handle
:
'Heapdump'
,
handle
:
'Heap Dump'
,
order
:
800
,
isActive
:
({
instance
})
=>
instance
.
hasEndpoint
(
'heapdump'
)
},
{
...
...
spring-boot-admin-server-ui/src/main/frontend/views/instances/logfile/index.vue
View file @
a2ace6f7
...
...
@@ -32,7 +32,7 @@
<sba-icon-button
:disabled=
"atBottom"
@
click=
"scrollToBottom"
icon=
"step-forward"
size=
"lg"
icon-class=
"rotated"
/>
</div>
<a
class=
"button"
v-if=
"instance"
:href=
"`instances/$
{instance.id}/logfile`" target="_blank">
<a
class=
"button"
:href=
"`instances/$
{instance.id}/logfile`" target="_blank">
<font-awesome-icon
icon=
"download"
/>
Download
</a>
</div>
...
...
spring-boot-admin-server-ui/src/main/frontend/views/instances/metrics/index.vue
View file @
a2ace6f7
...
...
@@ -28,7 +28,7 @@
</div>
<div
v-if=
"isOldMetrics"
class=
"message is-warning"
>
<div
class=
"message-body"
>
<p>
Metrics are not supported for Spring Boot 1.x applications.
</p>
Metrics are not supported for Spring Boot 1.x applications.
</div>
</div>
<form
@
submit
.
prevent=
"handleSubmit"
class=
"field"
v-else-if=
"availableMetrics.length > 0"
>
...
...
spring-boot-admin-server-ui/src/main/frontend/views/instances/shell/index.vue
View file @
a2ace6f7
...
...
@@ -15,7 +15,7 @@
-->
<
template
>
<div>
<div
class=
"instances"
>
<sba-instance-header
:instance=
"instance"
:application=
"application"
:class=
"headerClass"
/>
<sba-instance-tabs
:views=
"instanceViews"
:instance=
"instance"
:application=
"application"
:class=
"headerClass"
/>
<router-view
v-if=
"instance"
:instance=
"instance"
/>
...
...
@@ -76,3 +76,11 @@
}
}
</
script
>
<
style
lang=
"scss"
>
.instances
{
flex-grow
:
1
;
display
:
flex
;
flex-direction
:
column
;
}
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment