jens lewald
 Posts:40

| | 02/03/2008 12:02 PM |
| hi, i installed pb 3.01. and i notice that portal rules work now. but what i although notice is that wp3 process goes to 100 cpu load on different pages of my portal not all. maybee the css merge is the problem ? how can i disable it via config ? thanks jens | | | |
|
John Mitchell Posts:3196


| | 02/03/2008 12:15 PM |
| The CSS Merge works on all pages. There is not a way to disable it yet, but I'll have that in the next build. That may or may not be the problem though.
Some rules can require a lot of processing and the CPU will go to 100% if it is available. This is not a bad thing if it only happens for a short duration and then returns to idle, it only means that the process is using the resources available.
Also, if you are using the UI on the same machine that the server is running on you may notice some spikes in the CPU when the configuration is being saved.
I'll take a closer look to see if maybe something can be better optimized also. | | | |
|
jens lewald
 Posts:40

| | 02/03/2008 12:28 PM |
| hi john, in my case the process never go back to idle mode. it consume 100 % cpu load and the page will never be shown in browser. :( jens | | | |
|
John Mitchell Posts:3196


| | 02/03/2008 12:48 PM |
| I see. That is not good, and I assume this was not happening before you installed the latest and that your rules have not changed. Is that correct?
Please attach the rules for one of the pages that is showing this behaviour. You can find the rules for that page in the Snapsis/PageBlaster/Config/PageRules folder. The rules have a file name with the moduleid in it (i.e. PageBlaster.PageRules].config ). If you are in configuration mode for the PageBlaster module on the page that is having trouble you can get the module id from the Url. | | | |
|
DavidWSnow
 Posts:187

| | 02/03/2008 12:51 PM |
| I just installed it on my localhost clone and all of my styling, and menu disapeared - not good. Using FireFox and Web Developer the only css visable is from and external source for a bit of code from AddThis.com that I use for bookmarking. However in PB's cached directory there are 2 merged css files and they appear to have the contents of the correct files in them. If you need to troubleshoot this I can arrange access via email ---- On a seperate note is MATCHING a URL regex. does IF MATCH agingsafely.com and REPLACE WITH www.AgingSafely.com work for on URL or all non-www URLs? /Dave | | | |
|
John Mitchell Posts:3196


| | 02/03/2008 1:41 PM |
| Hi Dave, I just noticed the same thing when I installed on a different website that has a virtual folder. The problem is that it is not putting the path to the Merged CSS back in the page properly. I'm working to resolve that now.
I'm not sure what you are asking on the other question. If you do the IF Match on agingsafely.com and then just replace with www.AgaingSafely.com then it will do that replacement in the output of your page. You will need to use the Response object to actually do a redirect.
Maybe you are asking if you can put a condition that will match anything that is not www.agingsafely.com and redirect to www.agingsafely.com To do that you could put the www.agingsafely.com in the Match function and for the true part of the IF condition you would replace the /head and then for the Else (false part) you would put the Response Code. Effectively reversing the way I showed it above.
| | | |
|
jens lewald
 Posts:40

| | 02/03/2008 1:52 PM |
| hi john, i notice the high cpu load although when no portal rule is configured jens | | | |
|
green flash
 Posts:45

| | 02/03/2008 2:14 PM |
| Posted By greenflash on 02/02/2008 3:40 PM
John, i also want to add something, when loading saved rules via module, can you add an option to select which config file to be used for loading settings.
For example: in the config folder there is a one config file for default rules and another one for xhtml.saved.rules.
With dnn 4.8 PageBlaster page on Admin > PageBlaster is empty (no modules there) other users experiencing same issue? Ok, i just installed new version Snapsis.DNN.PageBlaster_3.0.1_Install.zip and now i see a module in Admin > PageBlaster page and it has a textbox and a GO button. When viewing this module settings it has relation with Search Results module i guess. Am i right? | | DotNetNuke Türkçe | |
|
green flash
 Posts:45

| | 02/03/2008 2:25 PM |
| Also there is a small touch up needed in PageBlaster css i guess. Please open; \DesktopModules\Snapsis\PageBlaster\module.css in line 25 you will see settings for #PBMessageContainer. At first setting width defined as width:99%px; and this is should be replaced with width:99% or something else.
| | DotNetNuke Türkçe | |
|
John Mitchell Posts:3196


| | 02/03/2008 3:44 PM |
| Ismet,
You should be seeing a PageBlaster Admin that looks like the Configure screen when you put the module on a page.
Have you tried un-installing and re-installing? I'll get that CSS fixed in the next build. Jens,
Maybe there is something wrong with the CSS replacements I am doing to make the paths in the CSS file point to the right place. I am attaching the PageBlaster.dll to this post. If you turn on Debug to the trace file in the Snapsis.PageBlaster.config file then youc can trace the starting and completion times of each CSS file processed. I have also compiled this in Debug mode so there should be good info in the trace file. If you want to attach your CSS files for a page that is experiencing this high CPU problem then I'll run them through a regex checker to see if there is a problem with my pattern. Last but not least. The DLL that is attached to this post corrects the problem of the CSS path not getting formatted correctly. | | | |
|
DavidWSnow
 Posts:187

| | 02/03/2008 5:57 PM |
| I just tried the new dll and my problem is solved. Firebug show that it is loading the single css file.
When will the feature be done that optimizes and beautifies the css, turns poorly written html in to syntactically correct xhtml and corrects spelling and grammar errors? ;=}
You have already done quite a bit with V3 - good job, /Dave | | | |
|
DavidWSnow
 Posts:187

| | 02/04/2008 11:56 AM |
| I have some questions about merging css. Typically DNN pages have 6-7 linked css files. Many are common to each page and should be cached in the browser after the first page view. With your merging of them into a single unique css file doesn't all this code get loaded for each page view? If so - where does the performance improvement come from? BTW with the number of little floppy icons that PB has maybe a title-tag is in order so that you get a hint of what each is going to do. /Dave | | | |
|
John Mitchell Posts:3196


| | 02/04/2008 12:57 PM |
| It is usually true that these files are cached in the local browser cache, but what usually happens is that they are not given an expires header, so you will still see several get requests on every page view which return a 304 response (meaning that the requested resource has not been modified). Limiting the number of http requests is a great way to optimize performance. If you haven't checked out the YSlow Plugin for FireFox yet then I highly recommend it. Here is what YSLow says about Http Requests What I have done is put all the CSS Files into one, but it is still linked so it still gets cached on the browser.
I also have a static file handler in PageBlaster now that is not enabled by default, but if you enable it for CSS & JSS then it will allow you to do all the same caching, compression, and replacements in those files that you can do in the html Page. To enable the Static File Handler for CSS and/or JS you will need to setup your application in IIS so that requests for CSS and/or JS are sent to the ASP.Net framework.
I have attached a couple images to this post to show how that is done. Along with the IIS Setup you will also need the following line added to your web.config in the httpHandlers section. <httpHandlers><addverb="*"path="*.css,*.js"type="Snapsis.HttpModules.PageBlaster.StaticFileHandler, Snapsis.HttpModules.PageBlaster"/> |


| | |
|
jens lewald
 Posts:40

| | 02/04/2008 1:56 PM |
| ok, the new dll complete destrory my webdesign. seems that the css didn´t load correct. the 100 cpu load still stands but i have generate a trace file. jens |
Attachment: 124565524071.zip
| | |
|
DavidWSnow
 Posts:187

| | 02/04/2008 2:03 PM |
| Wow YSLow is interesting. How many of its suggestions do you implement? As for the redirecting od CSS and JS to ASP, do you think that ISP will be willing? When I run YSLow agains my site I get several A's and several F's. Ill have to dig a little deeper but I not sure how I can implement many of the solutions. They would appear to be built into how DNN implements things. /DaveS | | | |
|
John Mitchell Posts:3196


| | 02/04/2008 5:22 PM |
| Your ISP may or may not be willing to map CSS & JS to your asp.net process for you, but they should if you want it. Some control panels will even let you set this yourself.
I'm researching to see if I can link them in by using an extension that is already set to asp.net (like .axd), which will allow it to be done in only the web.config.
I'll be making as many of the suggestions work as I can, but several of them do require having control of your IIS environment. | | | |
|
DavidWSnow
 Posts:187

| | 02/04/2008 6:12 PM |
| When you update the manual you might want to point people to http://developer.yahoo.com/performance/rules.html and tell which functions you do or improve. For example, after reading that doc I was going to rush to run DNN's scripts and css thru YUI Compressor. Since they don't change - not much work, not much upkeep and good performance gains. Between your white space removal, and compression I doubt that the gain AFTER V3.0 would be much.
The problem with the Yahoo document is there seem to be only a few that I have control of - DNN and IIS have the rest.
/DaveS | | | |
|
DavidWSnow
 Posts:187

| | 02/06/2008 11:19 AM |
| John, can I assume that with PB running on my site modules like "who is online" won't work well due to caching, or is there "magic" that makes them work? /DaveS | | | |
|
John Mitchell Posts:3196


| | 02/06/2008 11:42 AM |
| That is correct, if you are caching the page then it will only be updated if the page expires or if you manually refresh it. When you are logged in it is not cached by default so maybe that is enough (especially if the data is mainly watched by the site owner). If you wanted it to update every hour then you could set the interval that low, but i wouldn't recommend that unless you have a highly viewed page where the updates become more important.
One good thing about caching is that the more traffic you have the lower you can set the interval and still get tremondous gains.
Also, if there is a module that uses Ajax to show dynamic data then you could have a cached page that "magically" gets updated in the background.
I would recommend putting a who's online module on a page other than your home page if you really want it to be updated very frequently. | | | |
|
DavidWSnow
 Posts:187

| | 02/06/2008 11:42 AM |
| | After reading your reply about YSlow, I read the web page it points to and tried YUIcompressor. I tested it on the main js and css files in DNN and got a 30% reduction in size for most. I got a 100% reduction for portal.css. I checked and in fact the file is 4K of useless code, which it compressed to 0 bytes. It seems like a no-brainer to YUIcompress the handful of common js and css files that don't change. Will PB drastically reduce the need to consider this? | | | |
|