您的服务器是干什么的阿?
我的服务器也是Asp.net的,访问人数不超过10个人的情况内存占用不超过30兆。

解决方案 »

  1.   

    功能很简单,就是通过表单录入数据,然后存入数据库,可是连续输入多个表单后速度会明显下降,内存占用量明显增大我怀疑是AUTHENTICATION在捣鬼,因为我采用的是Forms AUTHENTICATION,在Global.asax文件中改写了下列函数:
    protected void Application_AuthenticateRequest(Object sender, EventArgs e)
    {
    // Extract the forms authentication cookie
    string cookieName = FormsAuthentication.FormsCookieName;
    HttpCookie authCookie = Context.Request.Cookies[cookieName];
    if(null == authCookie)
    {
    // There is no authentication cookie.
    return;

    FormsAuthenticationTicket authTicket = null;
    try
    {
    authTicket = FormsAuthentication.Decrypt(authCookie.Value);
    }
    catch(Exception)
    {
    // Log exception details (omitted for simplicity)
    return;
    }
    if (null == authTicket)
    {
    // Cookie failed to decrypt.
    return; 
    }
    // When the ticket was created, the UserData property was assigned a pipe delimited string of role names.
    string[] roles = authTicket.UserData.Split(new char[]{'|'}); // Create an Identity object
    FormsIdentity id = new FormsIdentity( authTicket ); 
    // This principal will flow throughout the request.
    GenericPrincipal principal = new GenericPrincipal(id, roles);
    // Attach the new principal object to the current HttpContext object
    Context.User = principal;
    }怀疑与此有关,请指点