Tuning des Weblogic /Oracle Fusion Middleware 11g Jan Peter Timmermann Principal Consultant PITSS 1
Wer wir sind: PITSS GmbH Geschichte Forms und Reports Modernisierungsexperte über 15 Jahre Erfahrung mit Oracle Technologien Oracle Gold Partner Mitglied der Oracle Modernization Alliance Oracle Forms Migration Partner PITSS America LLC PITSS GmbH Stuttgart/Bielefeld www.pitssamerica.com www.pitss.de 2
PITSS Standorte PITSS Region Nord D-33604 Bielefeld region.nord@pitss.de Tel.: +49 521 546 795-00 Troy (MI), USA Milton Keynes, UK PITSS Region Südwest (HQ) D-70567 Stuttgart region.suedwest@pitss.de Tel.: +49 711 728 752-00 PITSS Region Südost D-82515 Wolfratshausen region.suedost@pitss.de Tel.: +49 8171 21 62-10 3
Agenda Bei jeder Installation wiederkehrende Fragen Wieviel Forms Server brauche ich Agenda Wieviel RAM brauche ich bei 100 Usern (Hardware) Wieviele Report Server benötige ich Wie viel Heapsize sollte der Forms Server bekommen (mehr als 1024 MB)? 4
Viele Faktoren beeinflussen die Umgebung The client specification: memory and CPU The middle tier specification: memory and CPU. Oracle The database tier specification: can the database keep up with the requests from all of your concurrent users or is it a bottleneck The network topology. Between the client and the middle tier. Between the middle tier and the database Do they do a lot of calculations (CPU intensive)? Do they process large amounts of data (memory intensive)? 5
Was sagt denn Google dazu Suchen Suchbegriff : oracle forms 11g performance tuning 171.000 Ergebnisse Forum.oracle.com Search Results» Messages: 189 Search Terms: tuning wls_forms https://forums.oracle.com/forums/thread.jspa?messageid=9795437� 6
Was sagt Oracle zu dem Thema Oracle Information Center: Optimizing Performance of Oracle Fusion Middleware 11g [ID 1469617.2] About Reports Servers Spawning Engines [Document 1446679.1] Oracle Support Policy on Oracle Forms/Reports Performance Tuning [Document 1352875.1] Slow Response Time with Arraysize Set to Higher Values in Forms 11 and Sqlplus [Document 946045.1] Performance Decreasing Using Web Cache in Combination With Oracle Forms [Document 443405.1] 7
Oracle Support Policy on Oracle Forms/Reports Performance Tuning Oracle has no specific documents that state "if you have X number of users you will need Y amount of RAM and Z amount of CPU speed". Oracle Oracle Application Server Forms Services 10g (9.0.4) Capacity Planning Guide Seite 14 The only true way to test the scalability for your application is to run your own benchmarking tests 8
Kalkulations Vorschlag laut Guide Oracle Total memory = Memory for the operating system + Base Application Server memory + Memory consumed per user * # of Users + Average free memory Memory consumed per user = ( Total Memory Memory for the operating system Base Application Server memory Average free memory ) / # of Users 9
Die Test Masken TestMasken 10
Verbrauch Verbrauch Gesamt Benutzt Frei Verbrauch Nur OS 8.002,39 651,93 7.350,46 Nach DB 8.002,39 995,49 7.006,91 Nach WLS 8.002,39 3.907,51 4.094,88 Test.fmx 8.002,39 3.920,55 4.081,84 13,04 MB DatenMaske 8.002,39 3.988,05 4.014,34 80,54 MB Reports Maske 8.002,39 3.974,07 4.028,32 66 MB Mit Report 8.002,39 74 MB 11
Daten Test 1 Anwender 12
DatenTest 100 Anwender 13
Mögliche Lösung In der Formsweb.cfg prestartruntimes=true prestartinit=100 prestartmin=100 Oder Prestart 14
15
Verwaltungsmaske / Test Reports 16
Heap Size bei Forms/Reports Heap Size 17
Heap Size bei Forms/Reports Oracle 18
19
20
21
Erfasster Bildschirmausschnitt: 28.08.2012 13:36 22
Welche Komponenten sind in Forms noch betroffen Welche der betroffenen Komponenten HTTP Server Webserver Webcache Weblogic Managed Server Java Virtuelle Maschine Komponenten Client TCP/IP Netzwerk allgemein 23
Tuning HTTP Im HTTP Umfeld wären folgende Parameter für ein Tuning von Interesse KeepAlive MaxClient MinSpareServers MaxSpareServers KeepAliveTimeout MaxRequestsPerChild ThreadLimit ThreadsPerChild Global thread pool 24
Java Parameter Xms<size> set initial Java heap size Xmx<size> set maximum Java heap size client and server Assuming that you are running a lot of bytecodes. Make sure that you are using the correct mode of the virtual machine. For applications that need small footprint and fast startup, use -client. For applications where overall performance is the most important issue, use -server. Xss The default C code stack size is 512kb(-Xss512k). A value of 64kb is the smallest amount of C code stack space allowed per thread. 25
OC4J Tuning Darstellung der Parameter die man ändern sollte Default_island Anzahl CPU=Anzahl default_island Java Start Parameter Server Djava.security.policy=/opt/oracle/product/frservice/j2ee/OC4J_BI_Forms/config/java2.policy Djava.awt.headless=true Xmx512M Xms128M 26
WLS_FORMS klonen 27
WLS_FORMS klonen 28
WLS_FORMS klonen 29
WLS_FORMS klonen 30
Reports Tuning Anpassungen der JVM Parameter Vorgabe der Memory Parameter Max = Min Wie für den Forms Bereich KeepConnection Abbrüche minimieren Retry = yes Für jede CPU eine Engine Für verschiedene Aufgaben einzelne Reports Server Mit angepasster Konfiguration 31
Forms Tuning JRockit oder Sun JDK Gefühlt ist das JRockit schneller Aber nicht für Forms und Reports erlaubt Also bleibt nur das Sun JDK Parameter für die JVM anpassen Max = Min server oder client C Code Stack 32
Globale Maßnahmen Grosser Server mit viel RAM und CPU? Virtualisierung OVM VMWARE XEN Citrix. Achtung Oracle Lizenz Loadbalancer Hardware Software (Apache?) 33
Stellen Sie Ihre Fragen Fragen und Antworten 34
Danke für Ihre Aufmerksamkeit Kontakt PITSS GmbH : Email: jtimmermann@pitss.de Phone: +49 172 215 1043 Website: www.pitss.de 35
ADF & APEX to Expertengespräche ADF & APEX Previewer go! am PITSS Stand 206 im Anschluss an diesen Vortrag! Wir freuen uns auf Ihren Besuch! 36
PITSS Vorträge auf der DOAG 2013 Dienstag, 19.11.2013 Mittwoch, 20.11.2013 Do, 21.11.2013 Zeit Raum Thema Referent 13.00 13.45 18 / Sydney Oracle Text Ein vergessenes Feature in der Oracle DB Stephan La Rocca (PITSS) 15.00 13.45 20 / EG ADF, Forms und.net Alles vereint in einer Madi Serban (PITSS) Handheld Scanner App 16.00 16.45 8 / Helsinki Dein Blogreader die Top 20 Artikel zu SQL & PL/SQL Stephan La Rocca (PITSS) 17.00 17.45 8 / Helsinki Multiprocessing in PL/SQL Der Weg aus dem Single Christian Wille (PITSS) Thread 17.00 17.45 16 / Krakau Lesson Learned Oracle Fusion Middleware Forms / Reports 11g Jan Peter Timmermann (PITSS) 10.00 10.45 11 / Oslo Wie kann ich meine (bestehende) Forms GUI Daniel Kampf (PITSS) moderner gestalten? 11.00 11.45 11 / Oslo Forms nach APEX 101 Kann alles migriert werden? Fallbeispiele & Tests Markus Salm, Nihad Haskovic (PITSS) 12.00 12.45 11 / Oslo Dynamische Mehrsprachigkeit für Forms & Report Ronald Steiner (PITSS) 13.00 13.45 19 / EG Test & Pimp my Forms Application Nils Baranowski (PITSS), Dr. Jürgen Menge (ORACLE) 16.00 16.45 11 / Oslo Forms Wissen trifft auf ADF Jan Peter Timmermann (PITSS) 16.00 16.45 17 / Hongkong Experten Panel: Mobile Computing Stephan La Rocca (PITSS), Frank Nimphius (ORACLE) 13.00 13.45 15 / Prag Das ABC der Forms-nach-ADF Migrationen Beispiele & Live-Demo 16.00 16.45 12 / Istanbul Performance managen ohne Performance Management Pack Madi Serban, Bahar Us (PITSS) Jan-Peter Timmermann (PITSS) 37
Next PITSS Event Free PITSS Webinar 22. Dec 2013 - Forms Strategy & Source Code Analytics Deutsch: 10.00 11.00 Uhr Englisch: 14.00 15.00 Uhr Weitere Events finden Sie auf www.pitss.de 38