A Simple utility to monitor web application performance [closed] - java

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
My system setup is like: Application A takes requests from outside world and communicates with the backend REST apis. REST api also communicates with mysql database.
My requirement is to have a tool from which I can just monitor the resource usage and may be the performance of the web server. I want to have graphs for the resource usage which means I need historical data otherwise I would have just used the windows task manager to see the resource usage.
This means I do not need any load generator(that will be done by the Application A) just a resource monitor.
I googled and found tools like appdynamics, Nagios, munin but not sure if they are what I need. I haven't done performance testing earlier so there's lot of confusion.
Just looking for some guidance.
Thanks

If we are talking about "run tool-get result" the best option - Java Mission Control. It's free in test environment. You need to pay only for some features in production. It's much better than old VisualVM.
You can write a data to file using Flight Recorder. You can setup start point and duration. You just need to start your application like this:
-XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:StartFlightRecording=duration=60s,filename=myrecording.jfr

Related

Alternatives to Spring State Machine [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I have used Spring state machine with some basic Spring MVC application. I have to admit, it is pretty easy to configure and use.
But it has many limitations as well, mainly because of it being in very early stages of development.
I also came across some workflow engines like Activiti which is an open-source workflow engine written in Java and stateless4j which is a Lightweight Java State Machine. They look much more polished and sophisticated.
I wanted to know what is the difference between these and Spring State Machine (Advantages or disadvantages).
I would say so a Workflow Engine is a subset of State Machine. With a State Machine you can do much more things and you can think a Workflow Engine like a library for a State Machine, with use cases that are pre-configured but when you want something out of ordinary then you have to make your hands dirty again with a State Machine.

Creating a server side for android application [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm currently making an android application that will be used by a certain number of clients. Each client will have an account and will access information from the server. This information is stored in a DB.
My question is what is the best way to create a server side that will, later on, be compatible with other platforms (iOS, Windows, etc.)?
Can I use sockets on different platforms? Or should I create a Web Service?
I found a certain tutorial that I think is explaining a similar thing, but I think it demands a certain amount of knowledge, and I'm totally new to this, and haven't learned this at faculty (I'm good with sockets but I never had much confidence in them, and the idea of sending HTTP requests to the server looks much better).
Can someone divert me to a tutorial or lectures of how this is supposed to be done?
Connection between Android and a server would most easily be done with http requests.
There are several libraries available who make this easy like Retrofit.
For server-side applications you can take a look at Jersey in combination with a tomcat server.
There are of course many applications who can do these... so it comes down to a matter of preference.
There are many web development frameworks that works on many platforms such as spring, vertx, play and many others to name. You can you create rest like api for this purpose. Give all the low level works to the framework. You should not worry about low level details as most off them are handled by frameworks today.

Is there a java analog to supervisord [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I am writing a distributed system in which jobs (processes) will be run on multiple nodes (LINUX machines).
I want to be able to launch job on these machines, terminate a job (kill), monitor what is running on each machine.
I am looking for a framework (preferably in Java) which I can use to implement this solution.
I have looked at using the underlying components that frameworks like Hadoop or Akka use but have not come up with anything satisfactory.
A few additional constraints on what I'm looking for:
It should have reasonable proliferation into production grade projects
It should allow me to launch UNIX processes written in arbitrary languages
It should be open source
It should be lightweight -- An answerer has suggested I look at agent based frameworks -- though these satisfy the requirements I've posted -- I've found them to be very heavy weight. I'm looking for something that really fulfills the stated requirements and does not require me to adopt a more comprehensive methodology.
Thanks.
It's called multi-agent system and there are several frameworks available that you can use:
JADE
Janus
Ascape
Cougar
JIAC
Boris
Swarm

Any good in memory SFTP servers for Java? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I have some code I need to write a test for that connects to a vendor's SFTP server and puts a file there. Right now the test is connecting to their actual server but I'd rather not do that. Ideally I'd like to use a fake, in memory, sever along the lines of MockFtpServer. The I tried using that one and it gets part of the way there but dies at the point of issuing the actual commands since it doesn't recognize them.
The code in question is a flow setup within Mule ESB.
From Java SFTP server library?: you might be able to use SSHTools (see http://sourceforge.net/projects/sshtools/). They don't provide any good examples but the code base in SVN has some classes that appear to indicate that they support SFTP server commands (see http://sshtools.svn.sourceforge.net/viewvc/sshtools/trunk/j2ssh/src/com/sshtools/daemon/sftp/ and http://sshtools.svn.sourceforge.net/viewvc/sshtools/trunk/j2ssh/src/com/sshtools/j2ssh/sftp/). Some heavy lifting on your part will be necessary.
Let me know if that helps.
You can use org.apache.sshd.server, see https://mina.apache.org/sshd-project/index.html.
It's not trivial to configure, but there is an example: https://github.com/ggrandes/sftpserver

Profiler for java-based web application? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
There are a number of questions related to profiling a java application, but I'm wondering if these recommendations also apply to profiling a web-based (tomcat) java application?
Are there specific tools that a better than others? Or is the assumption that most java applications these days are web-based, and the existing questions/recommendations apply to web based applications?
You can start with jvisualvm in the Sun 6 JDK which allows you to attach to a running JVM and gather basic memory and cpu profiling data. This allows you to get a rough idea of what is going on, and if better profiilng tools are necessary.
I have used JProfiler, JProbe, and DynaTrace. DynaTrace is the most expensive choice but I found it as the most useful one so far. They also have a DynaTrace Ajax Client that's free and lets you profile on the front end side (java script execution, ajax calls, rendering time, etc). You can also use Fiddler to capture execution times.
I've tried JAMon, App Dynamics Lite, and JavaMelody and found JavaMelody to be the best and most compatible of each of them. It is easy to install and provides all the data you need to find the slow web requests, jsp pages, errors, and sql queries. It provides great summary data and charts. It also has very little overhead so it could be used in production instances. It will show you your cpu, ram, and thread utilization. You can't drill down to the nitty gritty per-line profiling like other tools, but it can point you in the right direction to find bottlenecks.

Categories