Skip to content

Commit

Permalink
Merge pull request #33 from scouter-project/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
bill23-kim committed Oct 3, 2015
2 parents ac4c223 + 3250d6f commit 9364f1b
Show file tree
Hide file tree
Showing 864 changed files with 2,572 additions and 960 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@ scouter.agent.host/bin/*
scouter.agent.host.boot/bin/*
scouter.server.boot/bin/*
*.log
scouter.enduser.script/.project
scouter.enduser.script/.project
.idea/*
scouter.agent.java/.settings/*
scouter.enduser.script/.idea/*
scouter.enduser.script/.settings/*
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## Open Source S/W Performance Monitoring
SCOUTER is a open source APM and a database monitoring tool(Tomcat & MariaDB).
## Open Source S/W Applicaiton Performance Monitoring
SCOUTER is a open source APM(Application Performance Montiring) and a database monitoring tool.
(Opensource WAS - Tomcat, JBoss ...... / Opensource DB - MariaDB )

![Screen](https://github.com/scouter-project/scouter-help/blob/master/misc/screen/dash1.png)

Expand Down
2 changes: 1 addition & 1 deletion scouter.agent.host/src/scouter/agent/BackJobs.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
2 changes: 1 addition & 1 deletion scouter.agent.host/src/scouter/agent/Configure.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
2 changes: 1 addition & 1 deletion scouter.agent.host/src/scouter/agent/Logger.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 the original author or authors.
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand All @@ -16,7 +16,9 @@
package scouter.agent.netio.request.handle;

import java.util.Enumeration;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

import scouter.agent.netio.request.anotation.RequestHandler;
import scouter.lang.pack.MapPack;
Expand All @@ -37,7 +39,11 @@ public Pack getAgentEnv(Pack param) {
String value = p.getProperty(key);
m.put(key, new TextValue(value));
}
Map<String, String> envs = System.getenv();
Set<String> keys = envs.keySet();
for (String key : keys) {
m.put(key, envs.get(key));
}
return m;
}

}
2 changes: 1 addition & 1 deletion scouter.agent.host/src/scouter/boot/Boot.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
2 changes: 1 addition & 1 deletion scouter.agent.host/src/scouter/boot/JarUtil.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
2 changes: 1 addition & 1 deletion scouter.agent.java/src/scouter/agent/AgentTransformer.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
2 changes: 1 addition & 1 deletion scouter.agent.java/src/scouter/agent/BackJobs.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
2 changes: 1 addition & 1 deletion scouter.agent.java/src/scouter/agent/ClassDesc.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
22 changes: 14 additions & 8 deletions scouter.agent.java/src/scouter/agent/Configure.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down Expand Up @@ -104,7 +104,8 @@ public final static synchronized Configure getInstance() {
public boolean profile_thread_cputime = false;
public boolean profile_socket_openstack = false;
public int profile_socket_openstack_port = 0;

public boolean profile_framework_sqlmap=true;

public boolean listup_background_socket = true;

public int xlog_time_limit = 0;
Expand Down Expand Up @@ -191,8 +192,12 @@ public final static synchronized Configure getInstance() {

public String plugin_http_trace = "";
public String plugin_apicall_name = "";

public boolean profile_fullstack_service_error = false;
public boolean profile_fullstack_apicall_error = false;
public boolean profile_fullstack_sql_error=false;
public boolean profile_fullstack_sql_commit=false;

public int profile_fullstack_lines = 0;
public long udp_collection_interval = 100;
public boolean profile_sql_escape = true;
Expand Down Expand Up @@ -229,8 +234,8 @@ public final static synchronized Configure getInstance() {
public long max_think_time = DateUtil.MILLIS_PER_FIVE_MINUTE;
public String object_registry="/tmp/scouter";

public boolean pstack_enabled=false;
public int pstack_interval=10000;
public boolean sfa_dump_enabled=false;
public int sfa_dump_interval=10000;

/**
* sometimes call by sample application, at that time normally set some
Expand Down Expand Up @@ -282,8 +287,6 @@ public File getPropertyFile() {

long last_check = 0;



public synchronized boolean reload(boolean force) {
long now = System.currentTimeMillis();
if (force == false && now < last_check + 3000)
Expand Down Expand Up @@ -361,6 +364,7 @@ private void apply() {
this.listup_background_socket = getBoolean("listup_background_socket", true);
this.profile_socket_openstack_port = getInt("profile_socket_openstack_port", 0);
this.profile_sql_escape = getBoolean("profile_sql_escape", true);
this.profile_framework_sqlmap = getBoolean("profile_framework_sqlmap", true);

this.enable_asm_jdbc = getBoolean("enable_asm_jdbc", getBoolean("enable.asm.jdbc", true));
this.enable_asm_socket = getBoolean("enable_asm_socket", getBoolean("enable.asm.socket", true));
Expand Down Expand Up @@ -446,6 +450,8 @@ private void apply() {

this.profile_fullstack_service_error = getBoolean("profile_fullstack_service_error", false);
this.profile_fullstack_apicall_error = getBoolean("profile_fullstack_apicall_error", false);
this.profile_fullstack_sql_error = getBoolean("profile_fullstack_sql_error", false);
this.profile_fullstack_sql_commit = getBoolean("profile_fullstack_sql_commit", false);
this.profile_fullstack_lines = getInt("profile_fullstack_lines", 0);

this.udp_collection_interval = getInt("udp_collection_interval", 100);
Expand Down Expand Up @@ -489,8 +495,8 @@ private void apply() {

this.object_registry = getValue("object_registry", "/tmp/scouter");

this.pstack_enabled = getBoolean("pstack_enabled", false);;
this.pstack_interval = getInt("pstack_interval", 10000);
this.sfa_dump_enabled = getBoolean("sfa_dump_enabled", false);;
this.sfa_dump_interval = getInt("sfa_dump_interval", 10000);

resetObjInfo();
setErrorStatus();
Expand Down
2 changes: 1 addition & 1 deletion scouter.agent.java/src/scouter/agent/DirectPatch.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
2 changes: 1 addition & 1 deletion scouter.agent.java/src/scouter/agent/HookingContext.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
2 changes: 1 addition & 1 deletion scouter.agent.java/src/scouter/agent/JavaAgent.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
2 changes: 1 addition & 1 deletion scouter.agent.java/src/scouter/agent/LazyAgentBoot.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
2 changes: 1 addition & 1 deletion scouter.agent.java/src/scouter/agent/Logger.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
2 changes: 1 addition & 1 deletion scouter.agent.java/src/scouter/agent/ObjTypeDetector.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
2 changes: 1 addition & 1 deletion scouter.agent.java/src/scouter/agent/asm/ApicallASM.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
2 changes: 1 addition & 1 deletion scouter.agent.java/src/scouter/agent/asm/CapArgsASM.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
2 changes: 1 addition & 1 deletion scouter.agent.java/src/scouter/agent/asm/CapReturnASM.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
2 changes: 1 addition & 1 deletion scouter.agent.java/src/scouter/agent/asm/CapThisASM.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
2 changes: 1 addition & 1 deletion scouter.agent.java/src/scouter/agent/asm/DbcOpenASM.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
2 changes: 1 addition & 1 deletion scouter.agent.java/src/scouter/agent/asm/IASM.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
2 changes: 1 addition & 1 deletion scouter.agent.java/src/scouter/agent/asm/MethodASM.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 LG CNS.
* Copyright 2015 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.
Expand Down
Loading

0 comments on commit 9364f1b

Please sign in to comment.