NHibernate or SQL Server 2008 performance issue - sql-server

I have a problem with web app I'm currently working on. This app is a kind of customization of Umbraco 5 CMS. The problem is that it runs well on my machine and other developer's machine but stack at production environment. When I try to browse it I get "Request Timeout" error.
I tried to analyze this site with dotTrace on both local and production sides. And I've figured out that the problem is in some method "()" which is called by SNINativeMethodWrapper.SNIReadSync method.
Here is the screenshot from dotTrace: (hot spots screen)
At the dev machine the same number of this method calls takes two times less then on the prod server.
What can be the reason for this?

Umbraco 5 development was ceased as there were significant performance issues with Version 5, related in part to the use of nHibernate
Here is a breakdown of some of the issues with version 5's implementation: http://ayende.com/blog/156577/on-umbracorsquo-s-nhibernatersquo-s-pullout
Umbraco are now focusing on updating version 4 and will soon release version 6 (on which performance is excellent!)

Related

Is Oracle ADF always this hard to deploy?

I've been working with Oracle PL/SQL and forms ¿for the last 20 years.
Like 8 years ago oracle people started to say their route map was that every new development should be done in Java with ADF and not in forms.
5 years ago we had to start a new project so we did it using that technology, because we had the feeling that sooner or later Oracle was going to stop suporting and publishing new versions of forms and reports.
The project was successful, but mantinance, deployment and configuring the developer's PC's is a lot hard and painful.
Starting with the fact that we have to deploy all the application every time we do an small change in any page, comparing with the fact that in forms we just have to deploy the altered form's FMX
And that is not the most unconfortable part, some times we deploy the applications EAR and we do not know why some classes are missing, so we have to compile everything again and deploy again.
In the last month we had to change our old Win 7 PC's for new ones, but I do not know why when I run the ant XML that should generate the EAR it does not find oracle.jbo.server package
Is this developing environmet always so hard and buggy ???
Although I understand this thread below is a bit old... but still a good source to refer it.
What is Oracle ADF?

Sterling DB Windows mobile 10 support

I have a WP8.0 Silverlight app in store. It uses SterlingPhone as DB. I downloaded my app in a Windows Mobile 10 Insider Preview Version (v10.0.10536.1004) and it seems that data is removed after I exit the app.
I am using IsolatedStorageDriver:
Database = _engine.SterlingDatabase.RegisterDatabase<ItemsDatabaseInstance>(new IsolatedStorageDriver());
Has anyone faced this situation? I know Sterling is pretty old, but I think it should continue working on WM10.
In case I have to change to another Database Engine, I'd appreciate suggestions (my Data Model makes it very difficult to work with Sqlite due to nested objects).
EDIT:
Apparently Sterling is unable to find the existing database so recreates it each time the app is relauched.
Isolated storage screenshot
For anybody who found this post with the same issue, the problem lies in changed behaviour for string.GetHashCode on Windows 10 Mobile.
Sterling uses the hashcode of the database name in the path for the database. On Windows 10 Mobile the behaviour has changed and everytime the app is restarted a different hash is calculated and the path changes to the previous database is not found.
To get your app working again, get the SterlingDB code from CodePlex and change the code in the PathProvider class, in the GetDatabasePath method, then recompile your app. You can add a check to see if you are running on WM10 so users on WP8 continue to work with the old database.
The newer version of SterlingDB on GitHub doesn't appear to use the hashcode anymore so should also keep working.

Sudden failure in DNN development environment

I've been working on a mixed desktop-and-web based solution for quite some time now. My local development environment was using VS2013-Pro, a recent DNN version (7.3, I think), Webmatrix 3, IIS Express 8.0, and SQL Server 2014 running on Windows 7 on Parallels on my Mac. Everything is up-to-date, all SP's installed, etc.
I developed a couple of REST webservices and a DNN module, and it's all been humming along and working really--shockingly--amazingly(!) well, when very suddenly:
I hit the DNN site and Webmatrix crashes and I get an error that says "IIS Worker process has stopped." And hasn't worked since. The debugger gives me the message "Unhandled exception at 0x762CC42D (KernelBase.dll) in iisexpress.exe: 0xE0434352 (parameters: 0x80131530, 0x00000000, 0x00000000, 0x00000000, 0x72F90000)."
I did not change anything, this started in the middle of a coding session. It worked fine for months, and then it just didn't any more.
I researched a bit and found several suggestions, none worked (delete cache folder, uninstall/reinstall). I find another post that mentions that Webmatrix is a dead product now. I try just to set up same site in IIS (following DNN's own instructions and a couple of other very similar sets I found). Still can't make site load--even the front page.
I download a fresh DNN install package (7.4 now) and try from scratch. Now when I try to load the site I get Visual Studio's Just In Time Debugger telling me an unhandled Win32 exception in w3wp.exe [2648]. I try running the debugger but it doesn't actually give any information.
I feel like other than the Webmatrix/DNN installation I've always had a lot of trouble getting DNN running locally, even following the directions to the letter. I need it running locally because I work disconnected a lot.
Am I missing something big here? Is anyone else having trouble all of a sudden? I've spent the better part of 4 days unistalling, reinstalling, tinkering, and can come up with nothing.
-Tim
OK, so after uninstalling everything (down to the metal, everything to do with SQL server, IIS, Webmatrix, and the recent .net framework updates) and then reinstalling them, I've been up and running for a week or so now. I've disabled Windows update, I think it was something in there that got me in this position in the first place. Not a great long-term solution, but it'll do for now.

Worklight Server not starting

hello i am using ibm worklight application development platform v 6.0.1. I am having a problem with the worklight server, which was working nicely till now. Whenever i try to start the server, it does not and displays the following error:
Worklight server was unable to start within 120 seconds. If the server requires more time, try increasing the timeout in the server editor.
i increased the timeout many times but the problem still persisted. Can anyone help?
thanks in advance.
Please read the following documentation Worklight has provided with the issue described above:
http://www-01.ibm.com/support/docview.wss?uid=swg21668175
A solution is provided below:
To resolve this problem, you can apply one or both of the following workarounds.
Complete the following steps to increase the timeout default value:
1.Open the Servers view.
2.Double-click the Worklight Development Server to open the Overview pane.
3.Expand the Timeouts section.
4.Increase the value in the Start (in seconds) field. Consider doubling the default value; that is, set it to 120 seconds.
Complete the following steps to remove the unnecessary applications from Worklight Development Server.
1.Open the Servers view.
2.Right-click the Worklight Development Server.
3.Select the Add and Remove option.
4.Remove all applications that you do not intend to work on.
After you have made any of these changes to the configuration, restart the server.
As you can see having a lot of applications deployed to your sever may cause the startup time to increase. Have you tried increasing the time beyond 120s as your error indicates?

How do I debug when GAE works slow in local development but works fine when uploaded to Google?

I am running under Windows7 locally. I have tried both Python 2.5 and Python 2.7.2. It just seems to stall a lot locally. All I am using is authentication and database. I get very inconsistent results locally. I upload the app to the server and it works. Sometimes when I am on a database page I will hit Refresh 10 times and 3 of the times the browser will just keep spinning.
I am using the latest GAE 1.5.3. (I was having the same issue with older 1.4.x version as well.)
Any ideas on what to try or what to look into?
You might want to switch to SQLLite for your local Datastore, you can do this by using the following option:
dev_appserver.py --use_sqlite
Another good practice would be to use the High Replication datastore simulation flag to give you a good idea how an application configured to use the High replication datastore will do in production, you can achieve the following by suing:
dev_appserver.py --high_replication
For the full documentation please check the following Link
Hope this helps!

Resources