Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
miria-project-test
Project
Project
Details
Activity
Releases
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
张征龙
miria-project-test
Commits
7a0b4ff3
Commit
7a0b4ff3
authored
Aug 14, 2018
by
wurongjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试cpu损耗过高
parent
36068fa5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
20 deletions
+25
-20
Application.java
...ain/java/cn/com/duiba/miria/project/test/Application.java
+25
-20
No files found.
src/main/java/cn/com/duiba/miria/project/test/Application.java
View file @
7a0b4ff3
...
...
@@ -10,28 +10,33 @@ public class Application {
public
static
void
main
(
String
[]
args
)
{
SpringApplication
sa
=
new
SpringApplication
(
Application
.
class
);
sa
.
run
(
args
);
java
.
lang
.
Thread
t
=
new
java
.
lang
.
Thread
(
new
Runnable
()
{
@Override
public
void
run
()
{
try
{
while
(
true
)
{
log
.
info
(
"log test,time:{}"
,
System
.
currentTimeMillis
());
Thread
.
sleep
(
10000
);
}
}
catch
(
InterruptedException
e
)
{
e
.
printStackTrace
();
}
}
});
t
.
run
();
// SpringApplication sa = new SpringApplication(Application.class);
// sa.run(args);
//
// java.lang.Thread t=new java.lang.Thread(new Runnable() {
// @Override
// public void run() {
//
// try {
// while(true) {
// log.info("log test,time:{}", System.currentTimeMillis());
// Thread.sleep(10000);
// }
// } catch (InterruptedException e) {
// e.printStackTrace();
// }
//
// }
// });
// t.run();
int
num
=
0
;
while
(
true
)
{
num
=
num
+
1
;
if
(
num
==
Integer
.
MAX_VALUE
)
{
num
=
0
;
}
}
}
...
...
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