Defining Performance and Performance Tuning

Why is My Application slow?

When we find that after an application is deployed, it is not performing as desired. In other words it’s not meeting non-functional requirements. This application now requires some fixes that may correct the problem. The process of refactoring an application to improve its performance is called tuning.

Before tuning we should also know, what is the user expectation (Non-functional requirement)?

  • How much user going to access the system as per NFR.
  • What is required throughput or response time user is expecting etc.
  • Dependency on third party application or software etc.

 

A definite improvement can be achieved if you do some tuning to your code. The Tuning Process may involve: Switching compilers, turning on optimizations using a different runtime VM, finding bottlenecks in the code or architecture that need some fixes.

There are always some limitations to our system i.e.

  • CPU speed and availability,
  • Memory availability
  • Disk and Network IO speed
  • Software limitation

 

Tuning can be performed at several layers.

  • At the hardware infrastructure level, we can improve the performance of our application by applying some hardware improvements like increasing our RAM, using a high performance CPU and other hardware up gradations.
  •  At the OS level there are several optimizations that can be done. Some of these include appropriate device driver settings, adjusting the swap space size and others.
  • Software infrastructure layer includes applications like the java virtual machine includes applications like the java virtual machine, database server, web server and the application server. These have vendor specific optimizations that can be applied on them.
  • At the application layer we can apply several code and design level optimizations.

 

Tuning Strategy

Once one problem is resolved another comes in hence follow the iterative process and tune unless until you get the required performance.

Tuning Steps – Find out the bottle necks, choose the quick fixes and repeat the process. Performance bottlenecks are identified during load testing and performance testing.

Below are some of the bottleneck areas and its reasons,

  • Extended response time of user
  • Extended response time of server
  • High CPU usage
  • Lots of open connections
  • Lengthy queues of requests
  • Memory leaks
  • Extensive table scans of database
  • Database deadlocks
  • Paging size and memory
  • Too much IO to Disk and Network
  • No multithreading support
  • Un-buffered streams
  • Caused by inefficient algorithm
  • To many objects and wrong allocation of these
  • Wrong coding practice etc

 

Some examples of performance problems and their solutions

1) If your application is hitting system memory limits, it may be paging sections in and out of main memory. In this case, the problem may be caused by too many objects, or even just a few large objects, being erroneously held in memory by too many large arrays being allocated (frequently used in buffered applications) or by the design of the application, which may need to be examined to reduce its running memory footprint.

2) If your application is CPU-bound, the code may need to be re-examined for bottlenecks, inefficient algorithms, too many short-lived objects (object creation and garbage collection are CPU-intensive operations) and other problems.

3) External data access or writing to the disk can be slowing your application. Hence first thing is to identify where the problem lies. Performance Tuning is an iterative process. Improving the CPU utilization may introduce a memory bottleneck. This tuning process continues till the desired performance is achieved.

28 thoughts on “Defining Performance and Performance Tuning

  1. www.clocksforlife.com says:

    Our platform offers a wide selection of interior timepieces for your interior.
    You can check out urban and classic styles to match your home.
    Each piece is hand-picked for its craftsmanship and reliable performance.
    Whether you’re decorating a functional kitchen, there’s always a fitting clock waiting for you.
    moon phase digital wall clocks
    Our assortment is regularly refreshed with new arrivals.
    We prioritize a smooth experience, so your order is always in safe hands.
    Start your journey to enhanced interiors with just a few clicks.

  2. MichealSoogs says:

    Our platform features a wide range of prescription drugs for ordering online.
    Anyone can easily buy needed prescriptions with just a few clicks.
    Our product list includes standard solutions and more specific prescriptions.
    The full range is provided by reliable suppliers.
    https://www.provenexpert.com/en-us/epididymitis-online/
    We maintain quality and care, with secure payments and prompt delivery.
    Whether you’re managing a chronic condition, you’ll find what you need here.
    Explore our selection today and experience convenient online pharmacy service.

  3. Кримінальна робота says:

    Этот портал создан для поиска работы на территории Украины.
    Вы можете найти разные объявления от проверенных работодателей.
    Сервис собирает предложения в различных сферах.
    Удалённая работа — решаете сами.
    Робота з ризиком
    Сервис легко осваивается и подходит на новичков и специалистов.
    Начало работы производится в несколько кликов.
    Нужна подработка? — сайт к вашим услугам.

  4. casino slots says:

    On this platform, you can find a great variety of online slots from leading developers.
    Users can experience traditional machines as well as modern video slots with stunning graphics and exciting features.
    Even if you’re new or an experienced player, there’s something for everyone.
    play casino
    The games are instantly accessible 24/7 and optimized for laptops and tablets alike.
    You don’t need to install anything, so you can start playing instantly.
    Site navigation is intuitive, making it quick to browse the collection.
    Join the fun, and discover the world of online slots!

  5. play aviator says:

    Here, you can discover a wide selection of online slots from famous studios.
    Visitors can try out classic slots as well as feature-packed games with high-quality visuals and bonus rounds.
    Whether you’re a beginner or an experienced player, there’s something for everyone.
    casino slots
    Each title are ready to play 24/7 and optimized for PCs and smartphones alike.
    You don’t need to install anything, so you can get started without hassle.
    Platform layout is intuitive, making it simple to explore new games.
    Join the fun, and enjoy the excitement of spinning reels!

  6. Randykeers says:

    Эта платформа публикует важные новостные материалы на любые темы.
    Здесь доступны факты и мнения, науке и других областях.
    Контент пополняется в режиме реального времени, что позволяет не пропустить важное.
    Понятная навигация ускоряет поиск.
    https://watchco.ru
    Все публикации предлагаются с фактчеком.
    Мы стремимся к информативности.
    Оставайтесь с нами, чтобы быть всегда информированными.

  7. Michaelnob says:

    Were you aware that 1 in 3 patients experience serious medication errors stemming from poor understanding?

    Your physical condition requires constant attention. Every medication decision you consider significantly affects your quality of life. Being informed about medical treatments is absolutely essential for successful recovery.
    Your health goes far beyond following prescriptions. Every medication changes your biological systems in potentially dangerous ways.

    Remember these essential facts:
    1. Mixing certain drugs can cause dangerous side effects
    2. Over-the-counter allergy medicines have strict usage limits
    3. Altering dosages undermines therapy

    For your safety, always:
    ✓ Research combinations via medical databases
    ✓ Read instructions completely prior to using new prescriptions
    ✓ Ask your pharmacist about correct dosage

    ___________________________________
    For reliable drug information, visit:
    https://experienceleaguecommunities.adobe.com/t5/user/viewprofilepage/user-id/17902626

  8. Jameshiede says:

    Our e-pharmacy offers a wide range of pharmaceuticals for budget-friendly costs.
    Customers can discover various remedies suitable for different health conditions.
    We strive to maintain high-quality products at a reasonable cost.
    Quick and dependable delivery provides that your order arrives on time.
    Enjoy the ease of ordering medications online on our platform.
    The challenge of rare disease

  9. am fm cd clock radio says:

    On this site showcases multifunctional timepieces by trusted manufacturers.
    You can find premium CD devices with digital radio and twin alarm functions.
    Many models come with external audio inputs, USB charging, and battery backup.
    The selection spans budget-friendly options to elite choices.
    the alarm cd
    Every model offer nap modes, auto-off timers, and LED screens.
    Order today through Amazon with free delivery.
    Choose your ideal music and alarm combination for kitchen daily routines.

  10. cd player alarm clock says:

    This section showcases CD player radio alarm clocks made by reputable makers.
    Browse through modern disc players with FM/AM reception and two alarm settings.
    Most units offer AUX jacks, USB ports, and backup batteries.
    Available products extends from value picks to elite choices.
    best clock radio review
    Each one offer snooze functions, rest timers, and illuminated panels.
    Purchases through eBay with fast shipping.
    Select your ultimate wake-up solution for home everyday enjoyment.

  11. casino games says:

    This website, you can find a wide selection of online slots from leading developers.
    Players can experience classic slots as well as feature-packed games with stunning graphics and interactive gameplay.
    If you’re just starting out or a seasoned gamer, there’s always a slot to match your mood.
    casino games
    All slot machines are instantly accessible 24/7 and optimized for laptops and smartphones alike.
    You don’t need to install anything, so you can get started without hassle.
    The interface is intuitive, making it quick to explore new games.
    Sign up today, and enjoy the world of online slots!

  12. casino slots says:

    This website, you can access a wide selection of online slots from leading developers.
    Users can enjoy classic slots as well as new-generation slots with stunning graphics and exciting features.
    Whether you’re a beginner or an experienced player, there’s always a slot to match your mood.
    casino games
    Each title are instantly accessible round the clock and designed for laptops and smartphones alike.
    You don’t need to install anything, so you can get started without hassle.
    Platform layout is easy to use, making it simple to find your favorite slot.
    Register now, and discover the world of online slots!

  13. DavidRox says:

    The site provides off-road vehicle rentals on the island of Crete.
    You can conveniently arrange a vehicle for exploration.
    When you’re looking to discover mountain roads, a buggy is the fun way to do it.
    https://www.provenexpert.com/buggycrete/
    All vehicles are well-maintained and offered in custom plans.
    Booking through this site is fast and comes with no hidden fees.
    Begin the adventure and feel Crete like never before.

  14. carbox30.ru says:

    Наличие туристического полиса во время путешествия — это необходимая мера для обеспечения безопасности путешественника.
    Полис покрывает медицинские услуги в случае обострения болезни за границей.
    К тому же, страховка может охватывать компенсацию на медицинскую эвакуацию.
    страховка автомобиля
    Ряд стран обязывают оформление полиса для въезда.
    При отсутствии полиса госпитализация могут обойтись дорого.
    Получение сертификата заранее

  15. страховка за рубеж says:

    Покупка страховки при выезде за границу — это необходимая мера для спокойствия туриста.
    Полис обеспечивает медицинские услуги в случае обострения болезни за границей.
    Кроме того, страховка может предусматривать покрытие расходов на медицинскую эвакуацию.
    осаго рассчитать
    Многие страны обязывают предоставление документа для получения визы.
    Если нет страховки госпитализация могут стать дорогими.
    Оформление полиса до поездки

  16. CharlesMew says:

    Предстоящее лето обещает быть насыщенным и экспериментальным в плане моды.
    В тренде будут свободные силуэты и неожиданные сочетания.
    Актуальные тона включают в себя неоновые оттенки, сочетающиеся с любым стилем.
    Особое внимание дизайнеры уделяют аксессуарам, среди которых популярны макросумки.
    https://joylife.in/read-blog/313
    Возвращаются в моду элементы ретро-стиля, в свежем прочтении.
    На улицах мегаполисов уже можно увидеть захватывающие образы, которые впечатляют.
    Будьте в курсе, чтобы создать свой образ.

  17. hitman-assassin-killer.com says:

    This platform lets you connect with workers for one-time risky missions.
    Users can easily set up assistance for specific needs.
    All contractors are experienced in handling complex activities.
    hitman-assassin-killer.com
    The website guarantees private communication between clients and freelancers.
    If you require fast support, this platform is here for you.
    Submit a task and connect with the right person now!

  18. ordina omicidio l'uccisione says:

    La nostra piattaforma permette il reclutamento di persone per compiti delicati.
    Chi cerca aiuto possono trovare esperti affidabili per lavori una tantum.
    Gli operatori proposti vengono scelti con attenzione.
    sonsofanarchy-italia.com
    Utilizzando il servizio è possibile visualizzare profili prima della scelta.
    La qualità resta al centro del nostro servizio.
    Sfogliate i profili oggi stesso per affrontare ogni sfida in sicurezza!

  19. 1xbet-official.live says:

    На этом сайте вы можете получить актуальное зеркало 1хБет без ограничений.
    Постоянно обновляем доступы, чтобы предоставить беспрепятственный доступ к порталу.
    Переходя через зеркало, вы сможете пользоваться всеми функциями без перебоев.
    1хбет зеркало
    Наш ресурс обеспечит возможность вам быстро найти новую ссылку 1хБет.
    Мы заботимся, чтобы каждый пользователь был в состоянии не испытывать проблем.
    Следите за обновлениями, чтобы не терять доступ с 1хбет!

  20. боттега венета цум says:

    Эта страница — аутентичный онлайн-магазин Bottega Veneta с отправкой по территории России.
    В нашем магазине вы можете приобрести эксклюзивные вещи Боттега Венета с гарантией подлинности.
    Каждая покупка имеют гарантию качества от компании.
    боттега венета цум
    Доставка осуществляется в кратчайшие сроки в по всей территории России.
    Бутик онлайн предлагает удобную оплату и гарантию возврата средств.
    Покупайте на официальном сайте Bottega Veneta, чтобы быть уверенным в качестве!

  21. 为了钱而下令谋杀 says:

    在这个网站上,您可以聘请专门从事一次性的危险工作的执行者。
    我们整理了大量可靠的从业人员供您选择。
    无论是何种危险需求,您都可以安全找到理想的帮手。
    为了钱而下令谋杀
    所有执行者均经过严格甄别,保证您的机密信息。
    网站注重匿名性,让您的特殊需求更加无忧。
    如果您需要具体流程,请直接留言!

  22. 雇佣一名杀手 says:

    在本站,您可以联系专门从事单次的危险任务的执行者。
    我们集合大量可靠的工作人员供您选择。
    无论面对何种危险需求,您都可以安全找到胜任的人选。
    如何雇佣杀手
    所有执行者均经过背景调查,保障您的利益。
    网站注重安全,让您的任务委托更加无忧。
    如果您需要更多信息,请随时咨询!

  23. assumi assassino says:

    Il nostro servizio rende possibile la selezione di operatori per lavori pericolosi.
    Gli utenti possono trovare operatori competenti per incarichi occasionali.
    Gli operatori proposti vengono scelti secondo criteri di sicurezza.
    ordina omicidio l’uccisione
    Utilizzando il servizio è possibile leggere recensioni prima di assumere.
    La qualità resta la nostra priorità.
    Esplorate le offerte oggi stesso per ottenere aiuto specializzato!

  24. 色情网站 says:

    访问者请注意,这是一个仅限成年人浏览的站点。
    进入前请确认您已年满18岁,并同意了解本站内容性质。
    本网站包含成人向资源,请理性访问。 色情网站
    若不符合年龄要求,请立即停止访问。
    我们致力于提供健康安全的网络体验。

  25. hire a killer says:

    Searching for someone to take on a single hazardous assignment?
    Our platform specializes in connecting customers with workers who are ready to tackle critical jobs.
    If you’re dealing with emergency repairs, unsafe cleanups, or risky installations, you’re at the perfect place.
    Every available professional is pre-screened and certified to guarantee your safety.
    hire an assassin
    We offer clear pricing, comprehensive profiles, and safe payment methods.
    No matter how challenging the situation, our network has the expertise to get it done.
    Start your quest today and locate the perfect candidate for your needs.

  26. teen videos says:

    Welcome to our platform, where you can find exclusive materials designed exclusively for adults.
    All the resources available here is appropriate for individuals who are 18 years old or above.
    Ensure that you are eligible before exploring further.
    interracial
    Experience a unique selection of restricted content, and dive in today!

  27. MichealSoogs says:

    Our platform features various pharmaceuticals for easy access.
    Users can easily buy treatments without leaving home.
    Our range includes both common medications and targeted therapies.
    Each item is acquired via verified pharmacies.
    canadianpharmacyworld coupons
    We ensure user protection, with secure payments and fast shipping.
    Whether you’re managing a chronic condition, you’ll find trusted options here.
    Explore our selection today and enjoy convenient support.

  28. Stevenfat says:

    Within this platform, access interactive video sessions.
    Whether you’re looking for casual conversations or professional networking, the site offers options for any preference.
    Live communication module crafted for bringing users together globally.
    Featuring HD streams plus excellent acoustics, each interaction feels natural.
    Engage with public rooms initiate one-on-one conversations, depending on what suits you best.
    https://rt.pornochat.moscow/
    All you need is a stable internet connection and a device start connecting.

Leave a Reply

Your email address will not be published. Required fields are marked *