Sunum yükleniyor. Lütfen bekleyiniz

Sunum yükleniyor. Lütfen bekleyiniz

Java Performans Yönetimi

Benzer bir sunumlar


... konulu sunumlar: "Java Performans Yönetimi"— Sunum transkripti:

1 Java Performans Yönetimi
4/7/2017 7:57 PM Java Performans Yönetimi Yusuf Kürşat TUNCEL CTO, KRON Haziran 2012 © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

2 Performans Gözlemlenmesi
4/7/2017 7:57 PM Giriş Kişisel Tanıtım 1994’ten beri Java’yla çalışıyorum. 2004’ten bu yana profesyonel Java geliştiricisi, kullanıcısı, yöneticisi. Java Performansını Etkileyen Faktörler İşletim Sistemi Java Parametreleri Performans Gözlemlenmesi Cache’leme ve Loglama Profiler Kodlama © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

3 İnce Ayar Stratejisi Evet, Şimdi Daha İyi!
4/7/2017 7:57 PM İnce Ayar Stratejisi Daha Çok Performans? Baştan Başla. Evet, Şimdi Daha İyi! Gözlemle, Ölç, Önceliklendir Düzelmedi mi? Tekrar Dene. Darboğazı Tespit Et Test Et, Karşılatır Hipotez Kur Kod Düzeltmesi Yap Test Senaryosu Oluştur © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

4 4/7/2017 7:57 PM İşletim Sistemi Faktörü Java, işletim sisteminden bağımsızdır(!) (mı acaba) Kernel Ayarlarının Gözden Geçirilmesi Max. HeapSize, Shared Segment büyüklükleri Max. Num. Open Files parametresi Max. Threads parametresi 32-bit vs. 64-bit VM File cache büyüklüğü Clock/Timing Senkronizasyonu Kontrolü / Vmware etkisi © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

5 Java Başlangıç Parametreleri
4/7/2017 7:57 PM Java Başlangıç Parametreleri Heap Size, Segment Size, PermGenSpace Garbage Collection System.gc()’nin disable edilmesi Low Pause Collector’ların seçimi Parallel Copy, Concurrent Mark-Sweep Jconsole remote ayarları MAN_OPTS="-Dcom.sun.management.jmxremote \ -Dcom.sun.management.jmxremote.port=16105 \ -Dcom.sun.management.jmxremote.ssl=false \ -Dcom.sun.management.jmxremote.authenticate=true« Username/password’ün konfigüre edilmesi © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

6 Performans Gözlemlenmesi
4/7/2017 7:57 PM Performans Gözlemlenmesi Jconsole Kullanımı Heap / Start / Garbage collection'ın gözlemlenmesi Thread'lerin gözlemlenmesi İşletim Sistemi performans gözlemlenmesi Nagios, cacti, Zabbix ile CPU/Memory/Disk IO'larının gözlemlenmesi © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

7 JConsole

8 4/7/2017 7:57 PM Log ve Cacheleme Göz ardı edilen bir performans yiyicisi: Log Dosyaları Log dosyalarının round edilmesi Her startup'tan önce log dosyalarının move edilmesi Caching Mekanizmaları Queue temelli caching Disk caching © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

9 Profiler Kullanımı Profiler'ın yardımcı olabileceği yerler
4/7/2017 7:57 PM Profiler Kullanımı Profiler'ın yardımcı olabileceği yerler Memory Leak'lerin tespit edilmesi Ineffective kod kullanımının tespit edilmesi Profiler'ın yardımcı olamayacağı yerler Run-time’da ortaya çıkan, düzensiz problemler OpenSource Profiler’lar Eclipse TPTP, Netbeans, VisualVM, Profile4j, etc. Ticari Profiler’lar Jprofiler © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

10 Yük Dengeleyici Kullanımı
4/7/2017 7:57 PM Yük Dengeleyici Kullanımı Donanım Temelli Yük Dengeleyici Kullanımı Session Replication ile persistence sağlanması Round-Robin algoritmasıyla yük dağıtımı HTTP Connection Persistence Session Replication TC1 TC2 http request http request LB (Aktif/Pasif) http request © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

11 Performansa Yönelik Kodlama
4/7/2017 7:57 PM Performansa Yönelik Kodlama Nesne Havuzu Kullanımı Obje yaratmaktan kaçınma Auto unboxing’den kaçınma Singleton Nesne Yapısı kullanma Cast’lerden kaçınma © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.


"Java Performans Yönetimi" indir ppt

Benzer bir sunumlar


Google Reklamları