web app deployed on jboss suddenly extremely slow - performance

I have a Web App deployed on JBoss App Server 7.0.2 on Windows XP
It had been running fine for the past 6 months then suddenly, it is painfully slow when launching in Internet Explorer 7
The Web App uses java, facelets, and hibernate. Any suggestions how I can begin to locate the problem? I don't know where I should start.

Start by looking at memory.
Download Visual VM 1.3.3, install all the plugins, and attach it to your JBOSS PID. It'll show you all generations of the heap, CPU, threads, which objects consume the most memory, etc.
Information and insight are what you need. Anything without data is merely a guess.
The other question that needs asking: what "suddenly" changed? I'd start asking about changes on that server: software upgrades, other apps installed, patches, everything.
You should also be looking at dependencies. What about the database server logs?

Related

citrix thin client performance issue

I'm having following problem:
We, in our company, are working in a mixed environment. Thin clients (HP-T520) and laptops. Our users connect to a citrix server to go onto the internet. We use a web application for our main business (which we navigate to trough citrix).
We notice a remarkable performance issue on the thin clients. The laptops are not facing this performance issue.
Someone can help me finding the root cause of this issue? I presume there will be some local resources used on the portable which are not available on the thin client, but I do not have a clue where to look or log this.
Thanks in advance!
We managed to resolve the issue. The Thin Clients had Citrix version 4.1 installed. This version doesn't have gfx render. We upgraded to version 4.5, this resolved the issue since it uses hardware acceleration.

How to debug an electron app packaged with squirrel that won't start on some computers

I've built an Electron app using the Squirrel packager/update manager.
I've had no issues in building the bundle, targeting Windows 64bits only.
I installed it on my Macbook pro (on a windows 7 x64 dual boot) without trouble. I tested it also on a 64 bit Surface pro 3 (Win 10), and another Win 7 PC. Everything works fine.
I published the app and got a few hundred downloads :half the people that downloaded it has it working, and for the other half it just won't start. The process spawns, then dies a second after. I tried starting it in admin, the admin dialog box won't even show. I tried running it from command line
myapp.exe > out.txt
But out is empty. How can I debug this ?
I was having trouble getting the logs for a production build as well.
My solution was to use electron-log to let the production app write logs to disk while debugging the problem.
You can then access the logs on windows at:
%USERPROFILE%\AppData\Roaming\<app name>\log.log.
Add some logs in your app that will give you insights in where the app crashes.
Don't forget to remove electron-log when you're done debugging and don't need to write any logs to disk any more.
I solved it for many users by building directly on a windows 10 fresh install.
The builds I used before were built on a windows 7. Not sure if it was that, I also have been cleaning the node modules a little bit, so maybe one of the modules I removed was the issue. Anyways, I still do not know of to debug the built exe in this kind of situation. There must be a way to get a log or something when the process kills itself

IDE/Hosting issues w/ Meteor/WebStorm/Cloud9

My next work project is going to be using the Meteor framework. Our team recently got licensed to use WebStorm IDE, which has been our favorite up until this point. so we were planning on continuing the project with it.
That is, until it was time to install it. Then we found out that the Windows version of Meteor is only partially finished, and all of our development PC's are windows based.
So we were considering as a work-around for this, we may use Cloud9 as our development IDE, as it supports Meteor. The sharing functions may help our team productivity a bit as well.
But this has some problems...
First, we just invested in WebStorm, so we would ideally like to use it as our primary IDE. But I do not know how we would be able to work with WebStorm if we can not run an up to date version of Meteor on our windows systems?
Second, I'm not sure if it's even possible to use Cloud9 as the development IDE, but then move the C9 project over to our Ubuntu server for hosting when it is time to go live?
Third, even if we could deploy to our Ubuntu server after C9, we plan on many updates to our live application after deployment. I'm not sure if there would be issues with this if our development is on C9 and deployment on a completely different server.
So I'm wondering if anyone has a potential solution for these issues? Is there any way for us to work with Meteor on our live Ubuntu server, or Cloud9, from WebStorm on our Windows systems? Or any way we could integrate Cloud9 and WebStorm together for the best of both worlds? Or any way we could use a Linux emulator or something to allow us to use Meteor on our local windows system, without making it difficult for multiple developers to work on the project at the same time?
Thanks in advance!
The Windows port of Meteor actually is working quite well; the only major issue is that mobile development doesn't work. That is going to be fixed in Meteor 1.1 anyway, whose primary goal is to get Windows support up to that of Linux and Mac OS X.
As the user who initially pushed for Webstorm to add Meteor support back in October 2012, I'd recommend starting with Webstorm and Meteor on Windows right away, unless you need mobile development. In that case, you need native *nix machine (an Ubuntu VM on Windows won't be able to run the Android emulator, for example).
WebStorm also supports server-side Meteor debugging, and they're pretty responsive when it comes to fixing bugs you report on YouTrack. See for example https://youtrack.jetbrains.com/issue/WEB-13490
With Cloud9, you cannot currently SSH into a workspace you have, so a hybrid Webstorm/Cloud9 situation might not be doable at this point.
As for deploying your stuff from Cloud9, that is very doable. There's some documentation here about that: https://docs.c9.io/v1.0/docs/deploying-via-the-command-line

Cloud Compiling Applications with Visual Studio

How would I develop apps if I had a Cloud Only PC?
I'm looking at the Acer-AC700-1099-Chromebook-Wi-Fi on Amazon.
The idea is kind of neat, and I can see this being the way more PCs are going to go. Nothing installed on your PC - you are basically running a "dumb terminal" that lives off an Internet connection.
So far, the biggest concern has been that apps like PhotoShop can not be run on them.
As programmers, most of us don't care about PhotoShop, but we need to compile our C#!
Does anyone have any information on whether some form of Cloud Compiling is in the works?
Maybe my employer would be able to purchase an X-License copy of Visual Studio that is installed on the server and I'd just log into that to develop all of my apps.
This is totally doable. I would suggest that you/your employer take a look at XenDesktop. This is technology that lets you run Windows Virtual Machines in your own private cloud. Then to access these machines you run a "thin client" which is basically like a Remote Desktop session. The thin client can run on a normal laptop, an iPad, and even Google ChromeOS. The basics of this technology are free, and not that hard to setup.
See these articles here which are Citrix announcing support for ChromeOS.
http://www.citrix.com/English/NE/news/news.asp?newsID=2311983
http://lazure2.wordpress.com/2011/05/12/chromebook-box-with-citrix-receiver-going-against-microsoft/
The coolest part about this, is you are using a Chromebook which is a cloud only laptop to access the public cloud AND your own private cloud. Pretty cloudy in here :)
Given that Visual Studio is Windows-only, you have to run Windows somewhere - either on your local PC (not an option with Chrome) or on some remote server (and access it via some web-based RDP client IF such beast exists and works with Chrome). I.e. the question can be split in two - where to get the powerful server system to run VS on it (and don't forget that compilation is resource-consuming, so the server system is to be very powerful if several users work on it in parallel), and how to connect to remote Windows system using Chrome OS. Both of those questions are offtopic here ;).

Is there an online application simulator somewhere?

I've developed some Java applications and wrapped them in exe files, some of them require JDIC files, the apps run on Windows systems, since my PC is all setup for development, it has all the necessary parts, but if a user downloads and runs my apps, they may not work as I thought. So I wonder if there is any place online that I can upload my apps and try to run them in a Windows environment and see if they work in the simulation ?
Frank
Consider using VirtualPC. You can get licensing for free.
Also you can get images from MS site for various versions of Windows to test with - supposedly for browser compatibility but you can use them for other things (which may or may not violate the EULA).
Consider using VMWare Workstation. You can get licensing for free.
You could use Amazon's EC2 instances to get easy access to virtual Windows machines. There is a bit of set up involved, but once you've done that you can spin up new machines easily enough. There are a number of tutorials online.
However, doing it locally with virtual windows instances is going to be even easier. I'd second VMware workstation or player.
You can download trial Windows server images directly from Microsoft for free.

Resources