Apache Tomac Web Server and LOG4J Framework - apache

I am new to Web Service and LAMP Stack.Currently I am working on a Web Application.It is a PHP Based Application that uses Apache Tomcat Web Server 8.0.26 ,MySQL Database ad Linux operating system(LAMP Stack).It has Web Services in Spring.
Following are the issues I am facing with the Application:-
1) Responses are slow over a period of few weeks from a web service hosted on tomcat.
Temporary Solution:-The problem is solved when we restart the Web Server.
2) What are the tools we can use to monitor tomcat / performance ?
Regards
Kaustubh

Take the dump of heap usage before and after of slow down and analyze. And also check your connection pooling with the database, check whether logs are getting rotated properly or not, check the number of active sessions in tomcat admin console.

Related

Setup monitoring for API load testing

I'm new to API Load Testing. Before we started to do API load testing, we need to configure some monitoring setup to monitor CPU usage and JVM heap memory as the test is executed. FYI I'm using Apache JMeter tool to execute the load tests.
For own exercise, I'm trying to do load test using this one sample REST web service: https://reqres.in/
How can I setup monitoring for the server of the sample web service when the web service is not hosted in my own PC? I've tried the JMeter plugin (Perfmon) but I guess this only works when the server is hosted at our own PC. Appreciate for your kind suggestions. Thanks!
Based on your environment set up & access:
If you have rdp or ssh access to server(application under test) , you can use visualVm , Jconsole to monitor CPU & Heap memory.
In case, you don't have access to remote server - then please work with IT or concerned team to help you configure these tools by opening remote JMX port for performance monitoring.
but I guess this only works when the server is hosted at our own PC - that's not true, you can monitor whatever host where the PerfMon Server Agent is running.
Of course you will need access to the host in order to launch the PerfMon Server Agent so you cannot deploy it onto a random machine in the Internet.
Alternative option is using SSHMon Listener, in this case you don't need to install anything but you need to have SSH connectivity to the machine(s) you want to monitor.

Do we need to reboot Apache web server if we update the source code of website it is hosting?

Well I am not an expert on Apache or any web server, I have recently finished my first web app, so I have rsyncd code to web server /HTML.
The web app is python flask based uses wsgi module to load.
I do not have control over Apache as it's taken care by systems department.
So I cannot test myself in office. I just want to know if we upload updated/modified code to the host machine running apache web server, will it pick up changes or we need to restart the Apache web server?

How do you create a net.tcp endpoint to an Azure Cloud Service?

This has to be a pretty simple task. I have an Azure Cloud Service that works just fine with HTTP and HTTPS. Now I want to create a net.tcp connection to the cloud service. The first thing I discover is that net.tcp is not supported by IIS Express. That's fine. So I try switching to regular IIS and all I get when I try to run the application is a 404 error. If I was building an WCF Web Application, I would get a form that allows me to select (and build) the virtual directory for the application, but there's no analog for this in the Cloud Service.
I can take a fresh 'Cloud Service' project build using visual studio, make no changes to it except change IIS Express to IIS. When I launch it, I get a 404 error in the web browser.
Does anyone have a working example of tcp.net (with IIS Express or standard IIS) in a Cloud Service?
This video by the Azure team is a great overview and cleared up a lot of conceptual issues I had. An Azure Cloud Service is a container around one or more virtual machines. The virtual machines basically come in two flavors: Web Role and Worker Role. What threw me is the description that the Worker Role was intended for background processes: not true. A Web Role is basically a VM with IIS, a Worker Role is basically a VM without IIS. Since the off-the-shelf IIS doesn't have net.tcp installed, you have to jump through hoops in order to get the protocol installed. Instead, the Worker Role can be used as a self-hosted web service. If you want the performance and throughput of TCP, this appears to be the direction to go.

weblogic AS: application deployed on a cluster with two managed servers

I'm on Weblogic AS 10.3.5, I have two managed servers pointed to a cluster, so I have two url, one for the first managed server, the other one for the second.
I will deploy my application on the cluster, so will I reach it on both the url? will the application deployed and running on both the servers?
How does it work? Can you give me some references, please?
Is it clear?
Thanks a lot!
First, you shouldn't be using WebLogic 10.3.5 anymore since it has reached the last stage of support called Sustained Support. Consider to upgrade at least to WebLogic 10.3.6.
Related to your question, I believe you are talking about a Web Application and how to access it. First you need to read about Load Balancing in a Cluster. For the web part (JSP and Servlets) basically you have to options: setup a Web Server (like Apache HTTP) to make use of the WebLogic Plug-in, that will then be connected to the WebLogic cluster. The other easier option is to simply use an LBR (load balance router hardware).
These are the "software" solutions you have for Load Balancing your web application in a clustered WebLogic:
WebLogic Server supports the following Web servers and associated
proxy plug-ins:
WebLogic Server with the HttpClusterServlet
Netscape Enterprise Server with the Netscape (proxy) plug-in
Apache with the Apache Server (proxy) plug-in
Microsoft Internet Information Server with the Microsoft-IIS (proxy) plug-in
You can read more about this options at the Configure Proxy Plug-ins documentation page for WebLogic 10.3.6.

Synchronize - Apache web server session with Tomcat session

I need to sync Apache web server session with Tomcat server session, to share authentication mechanism between 2 applications run on those two servers.
What is the way to do this? php code?
(I just need to authenticate the user who is going to use application runs on Apache through browser where who already logged in to the application which is running on Tomcat)
logging on to tomcat application cause
automatically logged in to apache application
log out from tomcat application cause
automatically log out from apache application