Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TransmissionFileSystemOutput not working #697

Closed
spasero opened this issue Jul 10, 2018 · 1 comment
Closed

TransmissionFileSystemOutput not working #697

spasero opened this issue Jul 10, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@spasero
Copy link

spasero commented Jul 10, 2018

Hello,

I'm trying to stress Appinsights tracking mechanism, and I figured out that there's a bug inside the class TransmissionFileSystemOutput.
I tried to track 300,000 telemetry (traces, requests, dependencies), but I ran into error messages : "Persistent storage max capacity has been reached", even if the "MaxTransmissionStorageFilesCapacityInMB" was set to 1000MB.
I looked into the transmission folder inside the system temporary folder and saw that the error was raised when I had only a hundred files of 8KB each.
So, looking at the Java code (TransmissionFileSystemOutput.java:137) :

if (size.get() >= capacityInKB) {
    InternalLogger.INSTANCE.logAlways(InternalLogger.LoggingLevel.WARN, "Persistent storage max capacity has been reached; currently at %s KB. Telemetry will be lost, please set the MaxTransmissionStorageFilesCapacityInMB property in the configuration file.", size.get());
    return false;
}

If I'm correct, the variable "size" is updated with temporary file size in bytes, and the maximum capacity is in MB.
I rebuilt with the following condition (size.get() >= capacityInKB * 1024) and it worked perfectly.

Could you also please tell me where to find detailed information about the parameters of the "Channel" element of the ApplicationInsights.xml file ?
Does this configuration work for Java projects or are there still some issues like this one ?

Regards,
Sebastien

@littleaj littleaj added this to the 2.1.2 milestone Jul 11, 2018
@littleaj littleaj added the Bug label Jul 11, 2018
@littleaj
Copy link
Contributor

Good catch, @spasero! We are working on a fix.

@ghost ghost locked as resolved and limited conversation to collaborators Jul 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants