ASP.NET Application Gets Slower Over Time

I'm running a .NET C# (4.5) web forms application and on our production server, the application gets slower and slower for everyone over time until about an hour where it becomes pretty much unusable and we just restart the server. It works perfectly fine on my local machine. Never gets slower at all. So I'm trying to think of what would be different. My local machine connect to the

ASP.NET应用程序随着时间的推移变得更慢

我正在运行.NET C#(4.5)Web窗体应用程序,并且在我们的生产服务器上,随着时间的推移,应用程序变得越来越慢,直到大约一个小时,它几乎变得不可用,我们只是重新启动服务器。 它在我的本地机器上工作得很好。 永远不会变得更慢。 所以我试图想到会有什么不同。 我的本地机器连接到同一个数据库。 还有一些活动目录用于登录,但也连接到本地和生产环境中的相同位置。 我在web.config中调试了一下。 我也查了很多其

Calculate the execution time of a method

Possible Duplicate: How do I measure how long a function is running? I have an I/O time-taking method which copies data from a location to another. What's the best and most real way of calculating the execution time? Thread ? Timer ? Stopwatch ? Any other solution? I want the most exact one, and briefest as much as possible. Stopwatch is designed for this purpose and is one of the

计算方法的执行时间

可能重复: 我如何衡量一个函数运行多久? 我有一个I / O时间占用方法,它将数据从一个位置复制到另一个位置。 计算执行时间的最好和最真实的方法是什么? Thread ? Timer ? Stopwatch ? 其他解决方案? 我想要最精确的一个,尽可能简短。 Stopwatch是为此目的而设计的,并且是在.NET中测量时间执行的最佳方法之一。 var watch = System.Diagnostics.Stopwatch.StartNew(); // the code that you want to measure

How can a make a sproc execute without a transaction?

I have a clean up process that needs to delete around 8 million rows in a table each day (sometimes more). This process is written in C#, and uses SMO to query the schema for table indexes, disabling them before executing an sproc that deletes in batches of 500K rows. My problem is that the entire operation is living inside a transaction. The sproc is executed inside a TransactionScope that&#

如何在没有事务的情况下执行sproc?

我有一个清理过程,每天需要删除表中约800万行(有时更多)。 此进程使用C#编写,并使用SMO查询表索引的模式,在执行批量删除500K行之前的sproc之前禁用它们。 我的问题是,整个操作都在交易中。 在一个TransactionScope中执行该sproc,该transactionScope配置了TransactionScopeOption.Suppress(这个运行沿着其他事物启动一个新的TransactionScope),我认为这不会允许一个Transaction,并且在sproc中有明确的提交点。

SQL Query gets slower with each iteration?

Is there anyway to make this SQL query faster? It searches a .sdf database for matching words. The data is arranged in alphabetical order. Currently it takes about 10-15 seconds to search, the first iteration of the search seems to be rather quick however the search becomes slower with each iteration? Why is this? Sorry this is my first experience with SQL. private void Search_Database() //

每次迭代SQL查询都会变慢?

无论如何要使这个SQL查询更快? 它在.sdf数据库中搜索匹配的单词。 数据按字母顺序排列。 目前搜索需要大约10-15秒,搜索的第一次迭代似乎相当快,但是每次迭代搜索都会变慢。 为什么是这样? 对不起,这是我第一次使用SQL。 private void Search_Database() //Searches SQL Database for matching words { Possible_Words.Clear(); using (var cn = new SqlCeConnection(@"Data Source=|DataDirectory|ResourceWor

Why aren't glibc's function addresses randomized when ASLR is enabled?

In trying to understand ASLR, I built this simple program: #include <stdio.h> #include <stdlib.h> int main() { printf("%pn", &system); return 0; } ALSR seems to be enabled: $ cat /proc/sys/kernel/randomize_va_space 2 and I used GCC to compile the program: $ gcc aslrtest.c Every time I run this program, it prints the same address ( 0x400450 ). I would expect this p

为什么在启用ASLR时glibc的函数地址不是随机的?

在试图理解ASLR时,我建立了这个简单的程序: #include <stdio.h> #include <stdlib.h> int main() { printf("%pn", &system); return 0; } ALSR似乎已启用: $ cat /proc/sys/kernel/randomize_va_space 2 我使用GCC来编译程序: $ gcc aslrtest.c 每次运行此程序时,它都会打印相同的地址( 0x400450 )。 我希望这个程序每次打印一个不同的地址,如果glibc被加载到一个随机地址。 这对我来

Determine amplitude of low frequency signals using FFT

I am totally new to signal processing and am trying to make a program that shows the amplitude of low frequency signals in a PCM (WAV) file. So far, I've been able to read in the WAV file and populate an array (actually a multi-dimensional array, one for each channel, but let's consider only on a channel-by-channel basis) of float with the data points of the sound file taken from the WA

使用FFT确定低频信号的幅度

我对信号处理是全新的,并且正在试图制作一个能够显示PCM(WAV)文件中低频信号幅度的程序。 到目前为止,我已经能够读入WAV文件,并将float组(实际上是一个多维数组,每个通道一个,但我们只考虑逐个通道的基础) float数据从WAV获取的声音文件。 每个数据点都是一个幅度。 总之,我有声波的时域表示。 我用这个来绘制波形相对于时间的幅度图,如下所示: 我的目标是完全相同,但只显示低于特定值(例如350Hz)的频率。

Using a low pass filter on audio

I am VERY new in the world of DSP and filtering. Like I started a week ago. Anyway, I have been looking for ways to use filters (low-pass, high-pass, notch, etc.) on some data I am getting. The data comes in an array of doubles and I can get more than 1 million points in this array. I am trying to filter out sound given a certain cutoff frequency but cannot get any algorithm to work. I have

在音频上使用低通滤波器

我在DSP和过滤领域非常新颖。 就像我一周前开始的那样。 无论如何,我一直在寻找使用滤波器(低通,高通,陷波等)的方法来处理我所获得的一些数据。 数据出现在一个双打数组中,我可以在这个数组中获得超过100万个点。 我试图在给定某个截止频率的情况下滤除声音,但无法获得任何算法。 我一直在互联网上,并尝试了一堆不同的库和方法,但我无法得到任何结果。 我偏爱NAudio库,因为它似乎具有我需要的一切(FFT和BiQuadF

Strong with low pass filter

I have implemented a basic Karplus-Strong algorithm. Ringbuffer, filling with white noise, output a sample from the front and append the average of first two elements to the end and delete the first element. Repeat last to steps. For better results and control over them I tried to implement a extended version of the algorithm. Therefore instead of an averaging filter I need a frequency fil

低通滤波器强大

我已经实现了一个基本的Karplus-Strong算法。 Ringbuffer充满白噪声,从前面输出一个采样,并将前两个元素的平均值添加到结尾,并删除第一个元素。 重复上一步到步骤。 为了获得更好的结果并对它们进行控制,我尝试实现该算法的扩展版本。 因此,我不需要平均滤波器,而需要像低通滤波器那样的频率滤波器。 我的平均滤波器有两个输入和一个输出:avg(a,b)=(a + b)/ 2 维基百科页面上的示例代码提供了许多输出作

Questions about anonymous mapped memory in linux

I'm playing around with the idea of using the virtual memory system to allow me to do transparent data conversion (eg int to float) for some numeric data stuff I've got. The basic idea is that the library I'm writing mmaps the data file you want, and at the same time mmaps an anonymous region of an appropriate size to hold the converted data, and this pointer is returned to the user.

有关Linux中匿名映射内存的问题

我正在玩弄使用虚拟内存系统的想法,允许我对一些数字数据进行透明数据转换(例如,int来浮动)。 其基本思想是,我正在编写mmaps数据文件库,并同时映射适当大小的匿名区域来存放转换后的数据,并将此指针返回给用户。 匿名区域是读/写保护的,这样每当用户通过指针访问数据时,每个新页面都会导致段错误,我可以捕获该错误,然后透明地转换mmaped文件中的数据并修复允许获得继续。 整个事情的这一部分到目前为止效果很好。

Do TCP sockets automatically close after some time if no data is sent?

I have a client server situation where the client opens a TCP socket to the server, and sometimes long periods of time will pass with no data being sent between them. I have encountered an issue where the server tries to send data to the client, and it seems to be successful, but the client never receives it, and after a few minutes, it looks like the client then gets disconnected. Do I need t

如果没有数据发送,TCP套接字会在一段时间后自动关闭吗?

我有一个客户端服务器的情况,客户端打开一个TCP套接字到服务器,有时很长一段时间会通过它们之间没有数据发送。 我遇到了服务器试图向客户端发送数据的问题,它似乎成功了,但客户端永远不会收到它,几分钟后,客户端看起来就会断开连接。 我是否需要每隔一段时间发送一些保活包? 编辑 :要注意,这是与同行在同一台计算机上。 计算机位于NAT后面,用于转发用于此计算机的一系列端口。 与服务器连接的客户端通过DNS打开