Quantcast
Channel: All Forums
Viewing all 27852 articles
Browse latest View live

Performance counters using WCAT only once

$
0
0

Hi,

I am running the wcat controller using the following command in attempt to capture the perfmon counters for the load test to be executed

wcctl -t home.ubr -f settings.ubr -x -o log.xml and the connecting the client to the controller using the wccclient  command.

I have defined the counters that i wish to capture within the settings file as below.

counters
    {
     host = "FSCOT065D-W7";
 interval = 20;
 counter = "ASP.NET\\Request Execution Time";
 counter = "Process(_Total)\\% Processor Time";
 counter = "Processor(_Total)\\% Processor Time";
 counter = "Processor(_Total)\\% Privileged Time";
 counter = "Processor(_Total)\\% Privileged Time";
 counter = "Processor(_Total)\\% User Time";
 counter = "Processor(_Total)\\Interrupts/sec";


 counter = "Memory\\Available KBytes";
 counter = "Memory\\Page Faults/sec";
 counter = "Memory\\Pages/sec";
 counter = "Memory\\Page Reads/sec";

 counter = "Process(w3wp)\\Working Set";

 counter = "System\\Context Switches/sec";
 counter = "System\\System Calls/sec";
 counter = "System\\Processor Queue Length";
 counter = ".NET CLR Memory(_Global_)\\# Bytes in all Heaps";
 counter = ".NET CLR Memory(_Global_)\\# GC Handles";
 counter = ".NET CLR Memory(_Global_)\\# Total reserved Bytes";
 counter = ".NET CLR Memory(_Global_)\\Allocated Bytes/sec";
 counter = ".NET CLR Memory(_Global_)\\Large Object Heap size";
 
 counter = "Web Service(_Total)\\Bytes Received/sec" ;
 counter = "Web Service(_Total)\\Bytes Sent/sec" ;
 counter = "Web Service(_Total)\\Connection Attempts/sec" ;
 counter = "Web Service(_Total)\\Get Requests/sec" ;
    }

 

 

The command executes succesfully and generates the log file as expected. However the performance counters recorded appear to be a summarized average(min, max etc). Is it possible with wcat to generate log files that detail the values recorded at every interval the perfmon counter  as with the perfmon application which allows you to record the data to a csv file and build you a fancy picture using excel to trend the values over the period of the load. Is this possible through the WCAT tool?


wincache opcode no performance improvement !

$
0
0
I have wincache 1.1 installed on a Windows 2008 R2 Web Ed with PHP 5.2.17. PHP and wincache installation were done manually (not using webpi). Everything seems OK, the phpinfo and the wincache.php page show that the module is active and working but i can't see any improvement in the php pages load time. Tests were done using Apache Bench and shows absolutely no improvements between "with wincache" and "without wincache". Can anybody help ? Thanks in advance Hamid

IIS with FastCGI and the PHP setting ignore_user_abort

$
0
0

Hi,

please have a look at this bug report regarding the PHP ignore_user_abort setting having no effect on IIS with FastCGI.


"Bug #60586: ignore_user_abort=true has no effect on IIS with FastCGI"
https://bugs.php.net/bug.php?id=60586

I'm wondering if this is a PHP issue at all or a Microsoft/IIS one.

Best regards
Lars

Componentart callback function is not working with ARR

$
0
0

Hi

 I need to forward requests from web server to app server , i am using ARR on iis7, and its working too, i am able to forward all the static requests but somehow the application fails when it uses componentart callback function, can anyone tell me if this need another rewrite rule

 

PDF File Opening, Search and Optimization Issues

$
0
0

Hi and thanks for reading my post. 

We just upgraded from Server 03 to 08 and everything is working great except 2 things and I wonder if they're related.

1.  We host a lot of pdf files on our site.  On the 03 server the pdf files all loaded quickly (they are all set to "fast web view").  On the 08 server, though, they are slow to load, as if the "fast web view" isn't set.  When "fast web view" is set, the user can begin to interact with the pdf immediately, instead of waiting for the entire pdf to download.  Since moving to 08 we have to wait until the entire pdf has downloaded before we see the first page and can scroll through the document.  I have looked at these pdf's and they still are set to "fast web view" on the 08 server.

2.  On the 03 server we were using indexing services to search all of our pdf files.  On the 08 server, we've started using windows search service.  The search results seems to work great, but when I want to display the first 100 characters of the pdf documents using System.Search.Autosummary, I'm seeing this:

%PDF-1.3 %âãÏÓ 4095 0 obj << /Linearized 1 /O 4098 /H [ 3579 1044 ] /L 2566121 /E 39473 /N 76 /T 2484101 >> endobj xref 4095 152 0000000016 00000 n 0000003396 00000 n 0000003521 00000 n 0000004623 00000 n 0000004992 00000 n 0000005079 00000 n 0000005167 00000 n .....

So, what is this?  Are these 2 issues related and how can I fix them? 

Thanks again.

 

Web Analytics Module

$
0
0

I am trying to integrate the web analytics module with iis7. I have compiled it and followed the instructions shown in http://learn.iis.net/page.aspx/480/sample-web-analytics-tracking-module/ but when I pull up the IIS manager, event viewer is showing the following error:

IISMANAGER_ERROR_LOADING_PROVIDER_TYPE

IIS Manager could not load type 'WebAnalyticsModule, WebAnalyticsModule, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c6b7132bcfe43312' for module provider 'WebAnalyticsModule.WebAnalyticsHttpModule' that is declared in %windir%\system32\inetsrv\config\administration.config. Verify that the type is correct, and that the assembly that contains the module provider is in the Global Assembly Cache (GAC).

Exception:System.TypeLoadException: Could not load type 'WebAnalyticsModule' from assembly 'WebAnalyticsModule, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c6b7132bcfe43312'.
   at System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName)
   at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
   at System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
   at System.Type.GetType(String typeName, Boolean throwOnError)
   at Microsoft.Web.Management.Server.AdministrationModuleProvider.GetModuleProvider(String userName, String connectionName)

Process:InetMgr
Connection:WIN-5RSAJTAG8FR\Administrator

Any idea where I might look to track down why IIS cannot load this module?

Thanks,

James Devine

Can you change the format of Advanced Logging log files with encoded fields or double-quotes?

$
0
0

Does anyone know of a way to either encode the fields in the iis logs when using advanced logging or change the format such that the cs-uri-stem cs-uri-query are both in double quotes?

The cs-uri-stem field is not enclosed in double quotes and sometimes has spaces in it.  The other fields such as cs(User-Agent), cs(Cookie) are enclosed in double quotes.  With the cs-uri-stem field containing spaces and not enclosed in double quotes, it is causing some problems with our parsing routines to know when the cs-uri-stem ends and the next field starts which is cs-uri-query.

The layout of our log is as follows:

date time s-sitename s-computername s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Cookie) cs(Referer) cs(Host) sc-status sc-win32-status sc-bytes cs-bytes TimeTakenMS CustomLogging

 

I did find on Jack Freelander's blog (http://blogs.iis.net/JackFree/) where he documented "We also expose control over the text that is used for delimiting log fields, for new-lines and you can even shut off writing log headers to disk.  This allows you to produce a simple flat-file (comma-separated or whatever you choose) to easily import into Excel, for example."

Does anyone know how to change the formatting of the log file when using Advanced Logging? 

Node.js running under IIS Express Keeps Crashing

$
0
0
This question is related to this question I posted on stackoverflow: http://stackoverflow.com/questions/11287509/node-js-running-under-iis-express-keeps-crashing I am trying to reinstall my windows 32 bit laptop machine with Windows 7 N SP1, as I am part of the Bizpark programme and have access to software etc. However IIS Express when running via Azure emulator on my local machine keeps crashing, that is version via this link: http://www.windowsazure.com/en-us/develop/nodejs/ When I click the Windows Installer June 2012 link and go through the process of installing all the bits to get node.js working on my local machine, IIS Express crashes with the error: Problem signature: Problem Event Name: APPCRASH Application Name: iisexpress.exe Application Version: 8.0.8298.0 Application Timestamp: 4f620349 Fault Module Name: iiscore.dll Fault Module Version: 8.0.8298.0 Fault Module Timestamp: 4f63b65c Exception Code: c0000005 Exception Offset: 00021767 OS Version: 6.1.7601.2.1.0.256.28 Locale ID: 1033 Additional Information 1: f66d Additional Information 2: f66d807b515d6b2dc6f28f66db769a01 Additional Information 3: 7b2f Additional Information 4: 7b2f6797d07ebc2c23f2b227e779722e Is there an update I am missing or is there a way around NOT having to use IIS Express and to use the IIS 7 that comes with Windows 7 N SP1? This is soo frustrating, it's stopped me dead in my tracks and I've been unproductive for 4 days now! These are the steps I have taken to reinstall my system: 1) Install Windows 7 N SP1 2) Run add/remove programs - enable IIS 7 3) Run windows update to make sure machine gets latest updates 4) Install Windows Azure SDK (but which version ? obviously I can't trust Windows Azure SDK for Node.js - June 2012 version because the IIS Express that it installs is broken) .... what to do ?

Problem with setting app pool

$
0
0

 I have created a package (zip file) which like to deploy to a web site (IIS 7). The package's parameters.xml file contains the following:

-<parameter name="AppPool" defaultValue="DefaultPool">

      <parameterEntry match="application/@applicationPool" scope="application" kind="DeploymentObjectAttribute"/>

</parameter> 

 

I use the following to deploy the package:

msdeploy -dest:iisApp='website/app' -source:package='base.zip' -verb:sync -enableLink:AppPoolExtension -setParam:'AppPool'='thePool'

I have other web.config parameters in parameters.xml and corresponding setParam in the command line. The app is created and all he web.config params are set correctly but the pool I specify is not set. It is always set to the same pool regardless of what I use in setParam. What I am doing wrong?

 

Thanks

unable to get sample logging client to work

Is the Application Initialization Module runs on Windows Azure Web Role

$
0
0

I tried to use it on Azure but did not managed to make it work. It runs perfectly on Windows 7.

Is the Application Initialization Module runs on Windows Azure Web Role (with osFamily = 2 for Windows Server 2008 R2) ?

Daniel

Android manifest big problem

$
0
0
Hi all, In live streaming m3u8 file which belongs to each profile ,created by iis has a #EXT-X-MEDIA-SEQUENCE tag. And this sequence number must be same for all different profiles for profile switching. But each profile has different values at same time for this reason Android player cannot switch between profiles. I think this is a bug in IIS media. How can i solve this problem. Thanks.

Problem with Callback function when working with ARR

$
0
0

Hi Everyone,

 i am working with ARR to forward the requests from web server to app server, and it is working fine except when it calls the callback function using javascript on server side. It gives me the message "the data could not be loaded". does anyone have idea on this? i am pasting the code for your reference

Private Const JSCRIPT As String = _"function RunLogin() {{" & vbCrLf & _

" document.getElementById('btnLogin').disabled = true;"

& vbCrLf & _

" window.{0}.Callback('true');"

& vbCrLf & _

" document.getElementById('btnLogin').disabled = false;"

& vbCrLf & _"}}" & vbCrLf & _

vbCrLf & _

ARR is not able to forward the callback request from web server to app server, please help me on this..

Rewrite Rules with FileMapProvider

$
0
0

Hi,
I've installed the Url Rewrite Module 2.0 with the URL Rewrite Extensibility Samples (allowes us to use custom providers for the rewrite\redirect rules - in my case: external .txt file with the rules). I added the following lines to my web.config as shown in the tutorials at iis.net - http://learn.iis.net/page.aspx/803/using-custom-rewrite-providers-with-url-rewrite-module/ :

<rewrite>
<providers>
<provider name="FileMap" type="FileMapProvider, Microsoft.Web.Iis.Rewrite.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<settings>
<add key="FilePath" value="{DOCUMENT_ROOT}\App_Data\redirectmappings.txt" />
<add key="IgnoreCase" value="1" />
<add key="Separator" value="," />
</settings>
</provider>
</providers>
<rules>
<rule name="FileMapProviderTest" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{FileMap:{R:1}}" pattern="(.+)" />
</conditions>
<action type="Redirect" url="{C:1}" />
</rule>
</rules>
</rewrite>

It works great, but I need to do is rewrite and not redirect. I have the following code:


<rule name="RewriteCustomDomainUser" stopProcessing="true">
<match url="^(.*)$" />
<conditions>
<add input="{HTTP_HOST}" pattern="^www.example-url-user1.com$" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
</conditions>
<action type="Rewrite" url="/user/user-one/{PATH_INFO}" appendQueryString="true" /> </rule>

This code rewrites the folder of a particular user for its own domain, it works fine, but get more and more users, it is difficult to add many rules in the web.config.


I added in my App_Data folder rewritemappings.txt file with this content:
www.example-url-user1.com, user-one
www.example-url-user2.com, user-anything
My question is if I can add these parameters in the rule RewriteCustomDomainUser with FileMapProvider.
Thank you very much!

Using IIS Express to run a web application that normally runs on standard IIS

$
0
0
Hi all, I am very new to using IIS express, I am trying to get an existing web application that runs via IIS on a web server using the application pool. The set up of the existing server is that it uses one application pool which loads two applications appname appnameCore With a physical path like C:\inetpub\wwwroot\appname\applications\appname C:\inetpub\wwwroot\appname\applications\appnameCore Currently the application uses an MS SQL database but I would like to change this to MS SQL CE I am not quite sure how to set up the same sort of environment, at the moment I have the web server running from a pen stick (memory stick/drive) and I would like to make the application portable. I think it is possible but I have have got stuck with the how to after trying for quite some time. I would really appreciate any help you can give me. If I can give any more information or expand the question in some way please let me know. Thanks, Glenn :)

preSync/postSync and recycleApp provider

$
0
0
Is it possible to use recycleApp provider with preSync/postSync? If so, how?

MsDepSvc.exe unhandled exception

$
0
0

I'm trying to use MSDeploy 3 RC to deploy a packaged web app to a remote Windows 2003/IIS 6 server. The deployment is controlled by a NAnt script running on a build server. The script loops through a set of 6 IIS sites on the target server and runs a sequence of MSDeploy calls for each. Essentially this is:

  1. Stop App Pool
  2. Deploy package with site-specific setParameters.xml file
  3. Start App Pool.

However the MSDeploy service on the remote server randomly crashes with the error below. It is very rare for all 6 sites to be successfully updated. The server is fully patched using Microsoft Update.

Application: MsDepSvc.exe

Framework Version: v4.0.30319

Description: The process was terminated due to an unhandled exception.

Exception Info: System.ArgumentException

Stack:

at System.Security.Principal.WindowsIdentity.CreateFromToken(IntPtr)

at System.Security.Principal.WindowsIdentity..ctor(IntPtr, System.String, Int32)

at System.Security.SecurityContext.CreateCopy() at System.Threading.ExecutionContext.CreateCopy()

at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)

IIS7.5 unable to connect to SQL server using 32 bit odbc.

$
0
0

We are upgrading our server from windows 2000 and IIS6 to windows 2008 R2 and IIS7.5.

Earlier our SQL DB was on same machine. But now we are configuring it on a seperate windows 2008 R2 machine.

So, we configured 32 bit version of ODBC to access SQL server. It uses windows authentication (it must use as per client requirement). IIS7.5 is configured to use windows authentication(it uses domain ID and this also a must as per client requirement).

When ASP try to access sql server it is fething following error(even though ASP and IIS is design/configure to save login detail):

Number Of Errors = 1 SQL State = 28000 Error #-2147217843 Description: [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. NativeError: 18456 Reported by: Microsoft OLE DB Provider for ODBC Drivers Connection = DSN=sopnmui_systf5 Error Number = -2147217843 Error Description = [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. Error Source = Microsoft OLE DB Provider for ODBC Drivers

We verified in the same ASP, it had session detail and able to print on screen. Have no idea how it translate from windows authentication to Anonymous.

I check following link and whatever it sugest, it is already configured:

http://vladimir.remenar.net/running-classic-asp-on-iis7/

Please see again I am using 32 bit ODBC to connect to SQL server 64 bit. We are forced to do so as our applicatipon is 32 bit and also it access a different kind(in-house develop 32 bit database system) of DB.

WPI 4.0 silent install?

$
0
0
Hi, I'm working through how to run a silent install of the 4.0 release of the Web Platform Installer... without the GUI. I can find the MSI on a machine post-install, but it appears that the exe that's running the install requires the ui--are there any command line switches (documented or otherwise) that I can run against the downloaded exe file so I can run the standard install process without user interaction? I assume that the executable is managing the process of getting the latest version of the Web Platform Installer, so ideally I'd like to use that, but for new server instances, I want to auto-install this and then a number of tools behind it once it's installed. Thanks

IIS6/FASTCGI/PHP 5.3 PUT Verb issues

$
0
0

Im trying to build a REST API server in php and Im running IIS6 with FastCGI 1.5 and PHP 5.3 and I cannot get the PUT verb to work. In the Application extension mapping within the site->directory I have the .php extension executable of C:\WINDOWS\system32\inetsrv\fcgiext.dll and the verbs POST,GET,HEAD,PUT,DELETE. When I have curl in PHP call out the index.php file thats running my REST server code I get a 501 Not Implemented. I have googled endlessly and couldnt find an answer to enable it for PHP without turning on WebDav and setting permissions on the folder of my php scripts. This works but I dont want this because then anyone could just upload files to this folder. Does anyone know of a fix for this for getting the PUT verb to work for php scripts that use FastCGI ? I replicated the best I could my REST server code in Classic ASP 3.0 with the same verbs allowed in the .asp extension mapping and the PUT request works using the same php curl REST client code.

 Update: I fixed this myself.

Viewing all 27852 articles
Browse latest View live




Latest Images