FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
JavaPerformanceTuning/StockBatchingPool/README at master · wanglei-github/JavaPerformanceTuning · GitHub
wanglei-github
/
JavaPerformanceTuning
Public
forked from
ScottOaks/JavaPerformanceTuning
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
JavaPerformanceTuning
/
StockBatchingPool
/
README
Copy path
More file actions
More file actions
Latest commit
History
History
History
33 lines (24 loc) · 995 Bytes
Breadcrumbs
JavaPerformanceTuning
/
StockBatchingPool
/
README
Copy path
File metadata and controls
33 lines (24 loc) · 995 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
To build:
Even if you are not using an entity manager, building this requires a
JPA implementation (since the mock entity manager still uses JPA
interfaces). Download an implementation (e.g., the reference implementation
from GlassFish) and in your environment set
JAVAX_PERSISTENCE=path_to/javax.persistence.jar
Then run
ant
To run:
In general, to use a MockEntityManager, run
java <jvmargs> -DMockEntityManager=MockEntityManager \
-jar jars/StockBatchingPool.jar \
[core size] [max size] [0|1|2]
where
core size -- optional, default 1, core size of ThreadPoolExecutor
max size -- optional, default # of CPUs on machine, max size of TPE
0|1|2 -- optional, default 0
0: Use a LinkedBlockingQueue
1: Use a SynchronousQueue
2: Use an ArrayBlockingQueue of 10,000 elements
Notes on Examples:
Example 9-1:
java <jvmargs> -jar jars/StockBatchingPool.jar N N
where N is the number of threads desired in the pool
Back
|
FazBrowse Home
|
New Git URL