Beruflich Dokumente
Kultur Dokumente
Daniel Joray
BASEL BERN BRUGG LAUSANNE ZUERICH DUESSELDORF FRANKFURT A.M. FREIBURG I.BR. HAMBURG MUNICH STUTTGART VIENNA
2014 © Trivadis
1
View > Header and footer
Date
Unser Unternehmen
BETRIEB
3
2014 © Trivadis
3
Trivadis – das Unternehmen
3 30.09.2014
Stand 12/2013
Trivadis an der DOAG
Ebene 3 - gleich neben der Rolltreppe
2014 © Trivadis
2014 © Trivadis
5
Java Messaging Service in Weblogic
30.09.2014
Java Messaging Systems
2014 © Trivadis
6
View > Header and footer
Date
Java Messaging Systems
1800
1600
1400
1200
Msg /Sec
1000 Write
Read
800
600
400
200
0
1 2 5 10 20 50
2014 © Trivadis
11
Java Messaging Service in Weblogic
30.09.2014
Java Messaging Systems
msg = qsession.createTextMessage();
2014 © Trivadis
12
Java Messaging Service in Weblogic
30.09.2014
Java Messaging System in Weblogic
2014 © Trivadis
13
View > Header and footer
Date
Java Messaging Systems Weblogic
2014 © Trivadis
14
Java Messaging Service in Weblogic
30.09.2014
Java Messaging Systems Weblogic
Weblogic Domain
JNDI
Tree
JMS Server
CF
Queue
JMS Module
Messages
Consumer
2014 © Trivadis
15
Java Messaging Service in Weblogic
30.09.2014
JMS Servers
2014 © Trivadis
16
View > Header and footer
Date
JMS Servers
2014 © Trivadis
17
Java Messaging Service in Weblogic
30.09.2014
JMS Servers
2014 © Trivadis
18
Java Messaging Service in Weblogic
30.09.2014
JMS Servers (Paging)
2014 © Trivadis
20
Java Messaging Service in Weblogic
30.09.2014
JMS Servers (Paging)
1600
1400
1200
1000
Messages Per Second (Paging File Size 0)
800
Messages Per Second (Paging File Size 2Gb)
600
400
200
0
00:00.0
00:03.0
00:06.0
00:09.0
00:12.0
00:15.0
00:18.0
00:21.0
00:24.0
00:27.0
00:30.0
00:33.0
00:36.0
00:39.0
00:42.0
00:45.0
00:48.0
00:51.0
00:54.0
00:57.0
01:00.0
2014 © Trivadis
21
Java Messaging Service in Weblogic
30.09.2014
JMS Servers (Parameters)
Bytes Threshold High and Bytes Threshold Low specifies upper and
lower threshold for the number of bytes stored on the JMS server, those
triggers flow control and logging events
Messages Threshold High and Messages Threshold Low specifies
upper and lower threshold for the of messages stored on the JMS
server, those triggers flow control and logging events
Blocking Send Policy determines whether the JMS server delivers
smaller messages before larger ones when a destination has exceeded
its maximum number of messages (default is FIFO)
Maximum Message Size sets the maximum number of bytes allowed in
individual messages on this JMS server
2014 © Trivadis
22
Java Messaging Service in Weblogic
30.09.2014
JMS Servers (Logging)
JMS server logs provide useful information relating to the production and
consumption of messages.
you can configure how the server write this information with parameters
like Log file name, Rotation type, Rotation file size and Limit
number of retained files
To activate Messages Logging you should enable the logging
information when you create the JMS destination such a queue or a
topic
2014 © Trivadis
23
Java Messaging Service in Weblogic
30.09.2014
JMS Servers (Monitor)
2014 © Trivadis
24
Java Messaging Service in Weblogic
30.09.2014
Persistent Stores
2014 © Trivadis
25
View > Header and footer
Date
Persistent Stores
2014 © Trivadis
26
Java Messaging Service in Weblogic
30.09.2014
Persistent Stores
You can configure for each FileStore the Synchronous Write Policy
2000
1800
1600
1400
1200
400
200
0
00:00.0
00:03.0
00:06.0
00:09.0
00:12.0
00:15.0
00:18.0
00:21.0
00:24.0
00:27.0
00:30.0
00:33.0
00:36.0
00:39.0
00:42.0
00:45.0
00:48.0
00:51.0
00:54.0
00:57.0
01:00.0
2014 © Trivadis
27
Java Messaging Service in Weblogic
30.09.2014
Persistent Stores Best Practices
2014 © Trivadis
28
Java Messaging Service in Weblogic
30.09.2014
Persistent Stores
2014 © Trivadis
29
Java Messaging Service in Weblogic
30.09.2014
Persistent Stores
For Oracle databases, the default DDL used is oracle.ddl, this DLL
create a table who the record is save in a LONG RAW Colum.
You can change the default DDL whit Create Table from DDL File field.
oracle_blob.ddl is available that uses a BLOB data type instead of the
default LONG RAW type.
2014 © Trivadis
30
Java Messaging Service in Weblogic
30.09.2014
Persistent Stores Performance
1800
1600
1400
Write MPS (Disk)
200
0
00:00.0
00:02.0
00:04.0
00:06.0
00:08.0
00:10.0
00:12.0
00:14.0
00:16.0
00:18.0
00:20.0
00:22.0
00:24.0
00:26.0
00:28.0
00:30.0
00:32.0
00:34.0
00:36.0
00:38.0
00:40.0
00:42.0
00:44.0
00:46.0
00:48.0
00:50.0
00:52.0
00:54.0
00:56.0
00:58.0
01:00.0
2014 © Trivadis
31
Java Messaging Service in Weblogic
30.09.2014
JMS Modules
2014 © Trivadis
32
View > Header and footer
Date
JMS Modules
Not all JMS Resource in a JMS Module have the same target. In this
case you can use Sub-Deployment to define a specific physical target to
a JMS Resource
JMS Module
Server
Queue Sub-
Deployment JMS Server 1
Queue
Server
Sub-
Deployment JMS Server 2
Topic
Connection
Factory
2014 © Trivadis
34
Java Messaging Service in Weblogic
30.09.2014
JMS Resources
2014 © Trivadis
35
View > Header and footer
Date
JMS Resources (Connection Factory)
2014 © Trivadis
36
Java Messaging Service in Weblogic
30.09.2014
JMS Resources (Connection Factory Parameters)
2014 © Trivadis
37
Java Messaging Service in Weblogic
30.09.2014
JMS Resources (Connection Factory Parameters)
2014 © Trivadis
38
Java Messaging Service in Weblogic
30.09.2014
JMS Resources (Connection Factory Parameters)
2014 © Trivadis
39
Java Messaging Service in Weblogic
30.09.2014
JMS Resources (Connection Factory Parameters)
2014 © Trivadis
40
Java Messaging Service in Weblogic
30.09.2014
JMS Resources (Destination Keys)
Destination Key defines a unique sort order that destinations can apply
to arriving messages.
As messages arrive on a specific destination, by default they are sorted
in FIFO (first-in, first-out) order, which sorts ascending based on each
message's unique JMSMessageID.
You can use a destination key to configure a different sorting scheme for
a destination, such as LIFO (last-in, first-out).
Parameters
Sort Key: Specifies a message property name. Like JMSMessageID,
JMSTimestamp, JMSPriority, User-Defined, ect.
Key Type: the expected property type for this destination key
Direction: The direction
2014 © Trivadis
41
Java Messaging Service in Weblogic
30.09.2014
JMS Resources (Quota)
2014 © Trivadis
42
Java Messaging Service in Weblogic
30.09.2014
JMS Resources (Templates)
2014 © Trivadis
43
Java Messaging Service in Weblogic
30.09.2014
JMS Resources (Queue)
Message Message
Producer Consumer
Queue
2014 © Trivadis
44
Java Messaging Service in Weblogic
30.09.2014
JMS Resources (Topic)
Message
Consumer 2
Producer
Topic
Consumer 3
Consumer 4
Message
2014 © Trivadis
45
Java Messaging Service in Weblogic
30.09.2014
JMS Resources (Distributed Destination)
Message Message
Queue
Server1
Producer Consumer
Queue
Server 2
2014 © Trivadis
46
Java Messaging Service in Weblogic
30.09.2014
JMS Resources (Distributed Destination)
2014 © Trivadis
47
Java Messaging Service in Weblogic
30.09.2014
JMS Resources (Distributed Destination)
Distributed Queue
Queue members are created and weighted individually to fine tune
performance
2014 © Trivadis
48
Java Messaging Service in Weblogic
30.09.2014
JMS Resources (High Available)
2014 © Trivadis
49
Java Messaging Service in Weblogic
30.09.2014
JMS Resources (Server Migration)
Host 1 Host 2
. Testsrv3
Testsrv2
Ip 10.0.10.70 Ip 10.0.10.80
Deployed applications
Testsrv2
tqueuesrv2 Ip 10.0.10.70
JMSServer2
Filestoresrv2_NFS
Deployed applications
tqueuesrv2
JMSServer2
Filestoresrv2_NFS
2014 © Trivadis
50
Java Messaging Service in Weblogic
30.09.2014
JMS Resources (Service Migration)
Host 1 Host 2
. Testsrv3
Testsrv3
Testsrv2
Ip 10.0.10.70 Ip
Ip 10.0.10.80
10.0.10.80
Deployed applications
tqueuesrv2
JMSServer2 tqueuesrv2
Filestoresrv2_NFS JMSServer2
Filestoresrv2_NFS
2014 © Trivadis
51
Java Messaging Service in Weblogic
30.09.2014
JMS Resources (Distributed Destination)
2000
.
1500
Queue
1000 Distributed Queue
500
0
00:00.0
00:03.0
00:06.0
00:09.0
00:12.0
00:15.0
00:18.0
00:21.0
00:24.0
00:27.0
00:30.0
00:33.0
00:36.0
00:39.0
00:42.0
00:45.0
00:48.0
00:51.0
00:54.0
00:57.0
01:00.0
2014 © Trivadis
52
Java Messaging Service in Weblogic
30.09.2014
Best Practices
2014 © Trivadis
53
View > Header and footer
Date
Best Practices
CPU Database
Network
CPU
IO IO Memory
WLS-Cluster Parameters
Memory Memory
2014 © Trivadis
54
Java Messaging Service in Weblogic
30.09.2014
Best Practices (How to choice the right configuration)
2014 © Trivadis
55
Java Messaging Service in Weblogic
30.09.2014
Best Practices (How to make your tests)
Monitor CPU, disk I/O, memory, network interfaces from all involved
systems
At the beginning of each test, stop the Weblogic systems and clean-up
or remove persistent store, paging files, truncate store tables
Configure your environment with WLST scripts ( TVD-Basenv™ can
help you)
Use a load generator (Jmeter, LoadUi, Grinder, Java function)
Document each test case, a the beginning, use only short test case,
when you have reached your targets with short test, you can make long-
term test
2014 © Trivadis
56
Java Messaging Service in Weblogic
30.09.2014
Best Practices (JMS Server and Store)
Create a custom store on each Weblogic server which will host a JMS
server. (Why use a custom store? Custom stores provide more flexibility
in tuning and administration. In addition, the default file store is not
migratable -- only custom stores are migratable.)
It is recommended to always target to migratable targets when available
Configure message count quotas on each JMS server. There is no
default quota, so configuring one helps protect against out-of-memory
conditions. Rule of thumb: conservatively assume that each message
consumes 512 bytes of memory even if it is paged out.
2014 © Trivadis
57
Java Messaging Service in Weblogic
30.09.2014
Best Practices (JMS Server and Store)
2014 © Trivadis
58
Java Messaging Service in Weblogic
30.09.2014
Best Practices (JMS Module)
2014 © Trivadis
59
Java Messaging Service in Weblogic
30.09.2014
Best Practices (JMS Module)
2014 © Trivadis
60
Java Messaging Service in Weblogic
30.09.2014
Best Practices (JMS Module)
2014 © Trivadis
61
Java Messaging Service in Weblogic
30.09.2014
Best Practices (Controlling the Flow of Messages)
0
100
800
1500
2200
2900
3600
4300
5000
5700
6400
7100
7800
8500
9200
9900
2014 © Trivadis
62
Java Messaging Service in Weblogic
30.09.2014
Best Practices (Controlling the Flow of Messages)
100
900
1700
2500
3300
4100
4900
5700
6500
7300
8100
8900
9700
2014 © Trivadis
63
Java Messaging Service in Weblogic
30.09.2014
Best Practices (One-Way Message Send )
2014 © Trivadis
64
Java Messaging Service in Weblogic
30.09.2014
Conclusion
2014 © Trivadis
65
Java Messaging Service in Weblogic
30.09.2014
Further information ...
BASEL BERN BRUGG LAUSANNE ZUERICH DUESSELDORF FRANKFURT A.M. FREIBURG I.BR. HAMBURG MUNICH STUTTGART VIENNA
2014 © Trivadis
View > Header and footer
Date