If you are trying to figure out how to measure the performance of your application, you are in the correct place. We spend a lot of time at Stackify thinking about application performance, especially about how to monitor and improve it. In this article, we cover some of our most important application performance metrics you should be tracking. Key Application …
Understanding & Profiling C# Async Await Tasks
Microsoft and the .NET community have made asynchronous programming very easy with their implementation of async await in C#. The latest versions of ASP.NET heavily utilize it to improve performance. Many performance monitoring and profiling tools struggle to support and visualize the performance of asynchronous C# code. Stackify’s Prefix & Retrace products both have excellent support for applications using C# async await. …
Advanced Web Transaction Monitoring with Retrace
Every application has specific functions that are mission critical. Including things like a customer’s ability to purchase something on your website or a REST API that handles thousands of requests per minute. Identifying and closely monitoring these key website transactions is a good best practice. Retrace enables deep performance monitoring of applications. You can monitor the overall performance of your entire application …
What is DevSecOps? How to Automate Security Testing
Every company wants to see their company getting press and media attention. Unless it is due to a hacker and a security breach. Every few weeks you see in the media stories of companies who were hacked. Getting a new credit card every few months because the data was hacked has been routine for most of us. The more that …
6 Reasons Cloud Monitoring Is Different Than Server Monitoring
Traditional IT monitoring has revolved around monitoring the infrastructures and servers. As you move to the cloud, it is possible that you don’t have either of those things. You could deploy your app via a service like Azure App Services and rely on Azure’s hosted Redis and SQL offerings. You could literally have access to zero servers. In the cloud, …
How DevOps Increases Security, Not Hurts It
One of the biggest challenges for development teams is having good visibility into production deployments. It is nearly impossible to track down application problems without access to critical data. Developers need access to a range of things, including application performance reporting, configurations, log files and more. Does DevOps create or solve security challenges? Possible DevOps Security Issues DevOps typically refers …
What Is Function-as-a-Service? Serverless Architectures Are Here!
It has never been a better time to be a developer! Thanks to cloud computing, deploying our applications is much easier than it used to be. How we deploy our apps continues to evolve thanks to cloud hosting, Platform-as-a-Service (PaaS), and now Function-as-a-Service. What is Function-as-a-Service (FaaS)? FaaS is the concept of serverless computing via serverless architectures. Software developers can …
How to Read & Customize IIS Log Files
Microsoft’s IIS web server uses a non-standard file format that is rarely seen. IIS Log Files use a space-delimited file format and also contain comments in them. The column headings are defined in the comments. In this article, we are going to take a look at how to interpret IIS log files. By the way, if you need help finding your IIS log …
Microsoft Build 2017 Review of Day One – Azure News & Updates
Welcome to Build and our Build 2017 review of day one! The day of course started with the normal cattle herd and a long wait to get into the keynote. Maybe it is just me, but there seems to be more people at Build this year than there was last year. This place is crazy busy! This year Build 2017 …
How to Use Web.Config customErrors for ASP.NET
The ASP.NET framework provides built-in settings to control how to respond when application errors occur. This functionality is part of the Web.Config customErrors settings section. Configuration Options for Web.Config <customErrors> Like most web.config settings, customErrors can be configured within the Machine.config, root web.config or your application’s web.config file. Usually, it is set in the web.config file for your application. CustomErrors …
Best Practices for Error Handling in ASP.NET MVC
Error handling is an important part of any application. ASP.NET provides several different ways to handle errors. In this article, we will review MVC error handling best practices. 5 Ways to do MVC Error Handling Between .NET, ASP.NET, and MVC there are several potential ways to handle application errors. Web.Config customErrors MVC HandleErrorAttribute Controller.OnException method HttpApplication Application_Error event Collect exceptions via …
Ultimate log4j Tutorial for Java Logging – Best Practices, Resources and Tips
Logging is a critical feature of any application. In this tutorial we will cover some log4j best practices that can help you get started and improve how you do logging with log4j. What is log4j and why should you use it, or any Java logging framework? A logging framework is important for any Java/J2EE based application. By changing the configuration, …
Understanding # of Exceptions Thrown / Sec and How to Find Exceptions
Exceptions can cause big performance problems. One of the most important performance metrics to track about your application is “# of Exceps Thrown / Sec“. It is available via Windows Performance Counters under the category .NET CLR Exceptions. In this article we will talk about exceptions, how to monitor your exception rate and find the actual exceptions being thrown. Is …
How to Generate C# Random Numbers, Pseudo vs Secure Random Numbers
Random numbers are used in a wide variety of software applications. Depending on what you are using random numbers for, you will need to decide which type to use. For a music jukebox, the accuracy is not very critical. For something like a lottery or slot machine, the random number generator must be extremely accurate. Â Read on to learn more …
How to Convert C# String to Int
The .NET Framework provides a couple built in ways to convert a C# string to int, or several other numeric datatypes. It is important that you do so in a way that does not throw potential exceptions. Unsafe Ways to Convert a C# String to Int You can use a couple built in methods, as shown below, to convert a …
What is an Unhandled Exception and How to Find Them
What is an Unhandled Exception? An exception is a known type of error. An unhandled exception occurs when the application code does not properly handle exceptions. For example, When you try to open a file on disk, it is a common problem for the file to not exist. The .NET Framework will then throw a FileNotFoundException. This is a simple example …
ASP.NET Core Web Servers: Kestrel vs IIS Feature Comparison and Why You Need Both
The Kestrel web server is a new web server as part of ASP.NET Core. It is now the preferred web server for all new ASP.NET applications. In this article, we will review what it is, how to use it, and the differences between Kestrel vs IIS. Why Do We Need the New Kestrel Web Server? What about IIS? If you have …
Software Error vs Exception – In Real World Examples
After 15+ years of software development, I still use the words error and exception interchangeably. But is there a difference between error and exception? I think it is best to make the distinction with some examples of errors vs exceptions. Example #1: Dishwasher Errors Let’s use this example of a dishwasher. Both images depict a problem, or error, that happened with …
Where Are IIS Log Files Located? How to View IIS Logs on Windows & Azure
Not sure where your IIS log files are located? No problem! For a standard Windows Server, the default log location is: %SystemDrive%\inetpub\logs\LogFiles If your IIS logs are not stored in the default location, follow these directions below to look up where they are currently being stored. We also have directions below for Azure App Services & Cloud Services. Where Are …